frontend: catch unknown errors
Catch unknown error types in the first stage (connect/initialize). Sometimes we unfortunately see unexpected exceptions, for instance pyserial might throw termios.error. See #39 for more details.
This commit is contained in:
parent
97d0d1123b
commit
bc829ce54c
@ -182,6 +182,10 @@ class StcGal:
|
||||
sys.stdout.flush()
|
||||
print("I/O error: %s" % ex, file=sys.stderr)
|
||||
return 1
|
||||
except Exception as ex:
|
||||
sys.stdout.flush()
|
||||
print("Unexpected error: %s" % ex, file=sys.stderr)
|
||||
return 1
|
||||
|
||||
try:
|
||||
if self.opts.code_image:
|
||||
|
Loading…
Reference in New Issue
Block a user