lm = last_modified(retrieve_from_host(host, URL))
logging.debug("lm for host %s: %s", host, lm)
latest_ts = max(latest_ts, lm)
- except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout):
+ except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout, requests.exceptions.ConnectTimeout):
pass
try:
local_lm = last_modified(retrieve_from_host('localhost', URL))
- except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout):
+ except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout, requests.exceptions.ConnectTimeout):
return False
logging.debug("lm for localhost: %s", local_lm)
if local_lm < latest_ts: