From: Zack Cerza Date: Mon, 21 Apr 2014 15:11:15 +0000 (-0500) Subject: Work around #8166 X-Git-Tag: 1.1.0~1528 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1448cdf5fc1d9726fbc28c172f38ea96c50f89b7;p=teuthology.git Work around #8166 Signed-off-by: Zack Cerza --- diff --git a/teuthology/report.py b/teuthology/report.py index 45cea89cf..7c2d41a75 100644 --- a/teuthology/report.py +++ b/teuthology/report.py @@ -274,7 +274,13 @@ class ResultsReporter(object): if response.status_code == 200: 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: msg = resp_json.get('message', '') else: