mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Also ignore HTTP 502 errors from remote servers.
This commit is contained in:
parent
966e428c7f
commit
bce4cb9035
@ -184,7 +184,7 @@ class FotaCheck:
|
|||||||
elif req.status_code == 404:
|
elif req.status_code == 404:
|
||||||
self.master_server_vote_on_time(reqtime, reqtime_avg)
|
self.master_server_vote_on_time(reqtime, reqtime_avg)
|
||||||
raise requests.exceptions.HTTPError("No data for requested CUREF/FV combination.", response=req)
|
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()
|
self.master_server_downvote()
|
||||||
req.raise_for_status()
|
req.raise_for_status()
|
||||||
raise requests.exceptions.HTTPError("HTTP {}.".format(req.status_code), response=req)
|
raise requests.exceptions.HTTPError("HTTP {}.".format(req.status_code), response=req)
|
||||||
|
Loading…
Reference in New Issue
Block a user