Commit c4f61a4a authored by D1plo1d's avatar D1plo1d

Exiting prontserve immediately if a serial port is not found.

parent 047e83ba
...@@ -577,6 +577,7 @@ if __name__ == "__main__": ...@@ -577,6 +577,7 @@ if __name__ == "__main__":
try: try:
if dry_run==False: if dry_run==False:
prontserve.do_connect("") prontserve.do_connect("")
if prontserve.p.printer == None: sys.exit(1)
print "Connecting to printer..." print "Connecting to printer..."
for x in range(0,50-1): for x in range(0,50-1):
if prontserve.p.online == True: break if prontserve.p.online == True: break
......
Markdown is supported
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