Skip to content

Commit

Permalink
frontend: also catch I/O errors in pulse phase
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorig committed Jan 17, 2016
1 parent 6a38127 commit 41cabb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stcgal/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ def run(self):
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:
Expand Down

0 comments on commit 41cabb5

Please sign in to comment.