Skip to content

Commit 41cabb5

Browse files
committed
frontend: also catch I/O errors in pulse phase
1 parent 6a38127 commit 41cabb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stcgal/frontend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def run(self):
131131
sys.stdout.flush();
132132
print("Serial port error: %s" % e, file=sys.stderr)
133133
return 1
134+
except IOError as e:
135+
sys.stdout.flush();
136+
print("I/O error: %s" % e, file=sys.stderr)
137+
return 1
134138

135139
try:
136140
if self.opts.code_image:

0 commit comments

Comments
 (0)