Skip to content
Snippets Groups Projects
Commit 7c097f2a authored by Sebastian Trueg's avatar Sebastian Trueg Committed by Dan Michael O. Heggø
Browse files

Retry api calls on timeout

parent 442e9b52
No related branches found
No related tags found
No related merge requests found
...@@ -411,7 +411,7 @@ class Site(object): ...@@ -411,7 +411,7 @@ class Site(object):
text=stream.text)) text=stream.text))
sleeper.sleep() sleeper.sleep()
except requests.exceptions.ConnectionError: except (requests.exceptions.ConnectionError, requests.exceptions.Timeout):
# In the event of a network problem # In the event of a network problem
# (e.g. DNS failure, refused connection, etc), # (e.g. DNS failure, refused connection, etc),
# Requests will raise a ConnectionError exception. # Requests will raise a ConnectionError exception.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment