From 8714ff9edb30464cbbffaa47cc74afb4fb798f7f Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 21 Jul 2020 17:32:59 +0200 Subject: [PATCH] Add more explanations for HWID being None --- plugins/USBPrinting/USBPrinterOutputDeviceManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/USBPrinting/USBPrinterOutputDeviceManager.py b/plugins/USBPrinting/USBPrinterOutputDeviceManager.py index e3834808db..e4438e09db 100644 --- a/plugins/USBPrinting/USBPrinterOutputDeviceManager.py +++ b/plugins/USBPrinting/USBPrinterOutputDeviceManager.py @@ -117,7 +117,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin): for port in serial.tools.list_ports.comports(): if not isinstance(port, tuple): port = (port.device, port.description, port.hwid) - if not port[2]: # HWID may be None if the port got disconnected while processing. + if not port[2]: # HWID may be None if the port got disconnected while processing, the device is not USB or the system doesn't report the type. continue if only_list_usb and not port[2].startswith("USB"): continue