Skip to content

Commit

Permalink
Separately catch broken connections
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Sep 3, 2018
1 parent fce740b commit ccec2f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grapheneapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def func(*args, **kwargs):
# the above line should raise. Let's be sure to at least
# break
break # pragma: no cover
except IOError as e:
log.critical("Connection was closed remotely. Retrying")
self.error_url()
self.next()
except Exception as e:
log.warning(traceback.format_exc())
log.warning(str(e))
Expand Down

0 comments on commit ccec2f6

Please sign in to comment.