Skip to content

Commit

Permalink
close before retry
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-eri committed Jun 16, 2016
1 parent 3173c32 commit 9a73ac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def run(self):
try:
self.modem.connect()
except (TimeoutException,IOError) as e:
self.modem.close()
exc_type, exc_value, exc_traceback = sys.exc_info()
logging.debug(traceback.format_tb(exc_traceback))
time.sleep(10)
Expand Down

0 comments on commit 9a73ac6

Please sign in to comment.