Catch both ConnectTimeout and ReadTimeout
This commit is contained in:
parent
a2c435db42
commit
f8bb43a547
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue