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 fb90c66929

View File

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