1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-09 22:06:47 +00:00

Also ignore HTTP 502 errors from remote servers.

This commit is contained in:
Markus Birth 2017-11-07 13:57:05 +01:00
parent 966e428c7f
commit bce4cb9035
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -184,7 +184,7 @@ class FotaCheck:
elif req.status_code == 404:
self.master_server_vote_on_time(reqtime, reqtime_avg)
raise requests.exceptions.HTTPError("No data for requested CUREF/FV combination.", response=req)
elif req.status_code not in [500, 503]:
elif req.status_code not in [500, 502, 503]:
self.master_server_downvote()
req.raise_for_status()
raise requests.exceptions.HTTPError("HTTP {}.".format(req.status_code), response=req)