Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Bug 771425 - Uploading report sometimes fails with 'No JSON object co…
Browse files Browse the repository at this point in the history
…uld be decoded'. r=hskupin
  • Loading branch information
bromaniac authored and whimboo committed Dec 19, 2013
1 parent 327c7a4 commit 7eded93
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mozmill/mozmill/report.py
Expand Up @@ -106,9 +106,13 @@ def send_report(self, results, report_url):
data['id'])
return data
except urllib2.HTTPError as e:
data = json.loads(e.read())
print "Sending results to '%s' failed (%s)." % (report_url,
data['reason'])
try:
data = json.loads(e.read())
print "Sending results to '%s' failed (%s)." % (report_url,
data['reason'])
except ValueError:
print "Sending results to '%s' failed (%s)." % (report_url,
str(e))
except urllib2.URLError as e:
print "Sending results to '%s' failed (%s)." % (report_url,
e.reason)

0 comments on commit 7eded93

Please sign in to comment.