mirror of
https://github.com/ceph/ceph
synced 2025-01-27 21:44:58 +00:00
parent
007d975290
commit
1448cdf5fc
@ -274,7 +274,13 @@ class ResultsReporter(object):
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return job_id
|
return job_id
|
||||||
|
|
||||||
resp_json = response.json()
|
# This call is wrapped in a try/except because of:
|
||||||
|
# http://tracker.ceph.com/issues/8166
|
||||||
|
try:
|
||||||
|
resp_json = response.json()
|
||||||
|
except ValueError:
|
||||||
|
resp_json = dict()
|
||||||
|
|
||||||
if resp_json:
|
if resp_json:
|
||||||
msg = resp_json.get('message', '')
|
msg = resp_json.get('message', '')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user