Skip to content
Snippets Groups Projects
Commit a3e6fe3f authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Program starts even with no serial ports found.

parent ab989815
Branches
Tags
No related merge requests found
......@@ -36,7 +36,11 @@ class linearData:
class SerialDevices:
def __init__(self):
self.ports, _, _ = zip(*list_ports.comports())
try:
self.ports, _, _ = zip(*list_ports.comports())
except ValueError:
self.ports = []
print "No serial ports found"
def refresh(self):
self.ports, _, _ = zip(*list_ports.comports())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment