bugzilla: Fault string and fault code needed to be reversed (bug 1349673) r?mars draft
authorDavid Lawrence <dkl@mozilla.com>
Tue, 28 Mar 2017 13:11:00 -0400
changeset 5637 c6b856365c8aeec6783334ee810e18b891a4535f
parent 5636 17ddedb745b7c4cf0181028135a52b2e791e7e0a
child 5638 841a6a870a60210f0cc31e06f5606d96834037fc
push id228
push userdlawrence@mozilla.com
push dateWed, 05 Apr 2017 21:13:59 +0000
reviewersmars
bugs1349673
bugzilla: Fault string and fault code needed to be reversed (bug 1349673) r?mars MozReview-Commit-ID: L1d94VXhKCL
commitindex/commitindex/reviews/bugzilla.py
--- 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