pklaus / brother_ql

Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
GNU General Public License v3.0
563 stars 168 forks source link

Fix ValueError: invalid literal for int() with base 16 #141

Open h opened 1 year ago

h commented 1 year ago

The identifier() function previously returned the serial number separated with an underscore "_", whereas BrotherQLBackendPyUSB.__init__() expects the device_specifier to separate the serial number with a forward slash "/". This was causing the following error to be raised when a serial number is present for the printer:

ValueError: invalid literal for int() with base 16
h commented 4 months ago

@pklaus Could you please review & merge this PR?