consume read time oout errors

wrap fix in try/except
This commit is contained in:
sfaulds 2016-11-18 13:42:46 +11:00
commit ec28018c61
2 changed files with 10 additions and 2 deletions

View file

@ -275,7 +275,11 @@ class DownloadUtils(object):
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ConnectTimeout as error:
log.error("Server timeout at: %s", url)
log.error("ConnectTimeout at: %s", url)
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ReadTimeout as error:
log.error("ReadTimeout at: %s", url)
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ConnectionError as error: