mirror of https://git.48k.eu/ogcp
views: skip non-200 OK requests to servers
Update multi_request() to skip non-200 OK requests to servers, otherwise traceback is displayed while trying to access the json body.master
parent
95b2e20015
commit
454999a895
|
@ -241,6 +241,9 @@ def multi_request(method, uri, payload=None):
|
|||
|
||||
if not r:
|
||||
continue
|
||||
if r.status_code != requests.codes.ok:
|
||||
continue
|
||||
|
||||
response['server'] = server
|
||||
response['json'] = r.json()
|
||||
responses.append(response)
|
||||
|
|
Loading…
Reference in New Issue