bugzilla: Fault string and fault code needed to be reversed (
bug 1349673) r?mars
MozReview-Commit-ID: L1d94VXhKCL
--- a/commitindex/commitindex/reviews/bugzilla.py
+++ b/commitindex/commitindex/reviews/bugzilla.py
@@ -62,17 +62,17 @@ class Bugzilla(object):
)
if method == 'POST':
response = self.session.post(
self.rest_url + path, json=data, headers=headers
)
try:
- data = json.loads(response.content.decode('utf-8'))
+ data = json.loads(response.content.decode())
except:
raise BugzillaError("Error decoding JSON data", 400)
if isinstance(data, dict) and 'error' in data:
raise BugzillaError(data['message'], data['code'])
return data