Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-07-21 18:32:59 +0300
committerGhostkeeper <rubend@tutanota.com>2020-07-21 18:32:59 +0300
commit8714ff9edb30464cbbffaa47cc74afb4fb798f7f (patch)
treeb5d3f097f6963e912ab3ed056bfb1bc371a2e4e3 /plugins/USBPrinting
parent2e32ac8465aad83831d3964f6ed662a9cccff10b (diff)
Add more explanations for HWID being None
Diffstat (limited to 'plugins/USBPrinting')
-rw-r--r--plugins/USBPrinting/USBPrinterOutputDeviceManager.py2
1 files changed, 1 insertions, 1 deletions
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