frontend: also catch I/O errors in pulse phase

This commit is contained in:
Grigori Goronzy 2016-01-17 15:16:43 +01:00
parent 6a38127c0d
commit 41cabb587b

View File

@ -131,6 +131,10 @@ class StcGal:
sys.stdout.flush();
print("Serial port error: %s" % e, file=sys.stderr)
return 1
except IOError as e:
sys.stdout.flush();
print("I/O error: %s" % e, file=sys.stderr)
return 1
try:
if self.opts.code_image: