while True:
start = time.time()
for host in HOSTS:
- lm = last_modified(retrieve_from_host(host, URL))
- logging.debug("lm for host %s: %s", host, lm)
- if lm > latest_ts:
- latest_ts = lm
+ try:
+ lm = last_modified(retrieve_from_host(host, URL))
+ logging.debug("lm for host %s: %s", host, lm)
+ if lm > latest_ts:
+ latest_ts = lm
+ except requests.exceptions.ProxyError:
+ pass
local_lm = last_modified(retrieve_from_host('localhost', URL))
logging.debug("lm for localhost: %s", local_lm)
if local_lm < latest_ts: