Skip to content

Commit

Permalink
Merge pull request #25 from vapor-ware/mhink-dumb-dumb-dumb
Browse files Browse the repository at this point in the history
Do not completely bomb in an exception handler.
  • Loading branch information
MatthewHink committed Dec 22, 2017
2 parents 9df4653 + 8641fa9 commit 1747970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synse/devicebus/devices/i2c/rci3525_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _read(self, command):
raise SynseException('No sensor reading returned from I2C.')

except Exception:
logger.exception()
logger.exception('Error reading lock')
raise SynseException('Error reading lock (device id: {})'.format(
device_id)), None, sys.exc_info()[2]

Expand Down

0 comments on commit 1747970

Please sign in to comment.