Skip to content

Commit 0204e44

Browse files
authored
Fix for issue #549
1 parent 528742a commit 0204e44

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/greaseweazle/tools/list_ports_windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,9 @@ def iterate_comports(cache_usb_info=True):
13171317
continue
13181318
yielded_devices.append(port_device)
13191319

1320+
# Skip ports with empty names.
1321+
if port_device.port_name is None:
1322+
continue
13201323
# Skip parallel ports.
13211324
if port_device.port_name.startswith('LPT'):
13221325
continue

0 commit comments

Comments
 (0)