Fix for faulty responses from the web server

This commit is contained in:
Frisk 2019-11-07 18:02:47 +01:00
parent 818e2779d9
commit 092cb98fb0
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -1203,6 +1203,10 @@ class Recent_Changes_Class(object):
logger.warning("Reached connection error for request on link {url}".format(url=url))
self.downtime_controller()
return None
except requests.exceptions.ChunkedEncodingError:
logger.warning("Detected faulty response from the web server for request on link {url}".format(url=url))
self.downtime_controller()
return None
else:
if 499 < request.status_code < 600:
self.downtime_controller()