Untitled
# create bridge lan_bus = create_lan_bus(args.port, args.seg) try: can_1, can_2 = batch_create_pcan_buses(args.bitrate, args.dbitrate, args.single) except PcanCanInitializationError or IndexError: showinfo(title=None, message=f'PCAN initialization failed') sys.exit(0) self.bridge = Bridge(lan_bus, lan_bus, c_1=can_1, ca=can_2)