diff options
Diffstat (limited to 'addons/hw_escpos/controllers/main.py')
| -rw-r--r-- | addons/hw_escpos/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hw_escpos/controllers/main.py b/addons/hw_escpos/controllers/main.py index e55dc57af5a..6c929ca2f26 100644 --- a/addons/hw_escpos/controllers/main.py +++ b/addons/hw_escpos/controllers/main.py @@ -81,7 +81,7 @@ class EscposDriver(Thread): try: description = usb.util.get_string(printer, 256, printer.iManufacturer) + " " + usb.util.get_string(printer, 256, printer.iProduct) except Exception as e: - _logger.error("Can not get printer description: %s" % (e.message or repr(e))) + _logger.error("Can not get printer description: %s" % e) description = 'Unknown printer' connected.append({ 'vendor': printer.idVendor, |
