Skip to content

Commit

Permalink
also catch OSErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
frankalicious committed Jan 26, 2018
1 parent f91fb17 commit 49dedc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/va18b.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, device = '/dev/ttyUSB0'):
if not self.port.isOpen():
self.port.open()

except IOError,err:
except (IOError,OSError),err:
print '\nError:' + str(err) + '\n'
sys.exit(1)

Expand Down

0 comments on commit 49dedc1

Please sign in to comment.