Catch both ConnectTimeout and ReadTimeout

This commit is contained in:
tomkat83 2016-12-05 19:31:54 +01:00
parent a2c435db42
commit f8bb43a547

View file

@ -218,7 +218,7 @@ class DownloadUtils():
log.warn("Server unreachable at: %s" % url) log.warn("Server unreachable at: %s" % url)
log.warn(e) log.warn(e)
except requests.exceptions.ConnectTimeout as e: except requests.exceptions.Timeout as e:
log.warn("Server timeout at: %s" % url) log.warn("Server timeout at: %s" % url)
log.warn(e) log.warn(e)