From 1448cdf5fc1d9726fbc28c172f38ea96c50f89b7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 21 Apr 2014 10:11:15 -0500 Subject: [PATCH] Work around #8166 Signed-off-by: Zack Cerza --- teuthology/report.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/teuthology/report.py b/teuthology/report.py index 45cea89cfd343..7c2d41a750e95 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: -- 2.39.5