Skip to content

Commit

Permalink
Merge pull request gmr#125 from zerodayyy/patch-1
Browse files Browse the repository at this point in the history
Fix json.loads call to support Python 3.9
  • Loading branch information
gmr authored Nov 5, 2020
2 parents 39e6c17 + 248a7e2 commit 3980bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consulate/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _demarshal(self, body):
body = body.decode('utf-8')
except UnicodeDecodeError:
pass
value = json.loads(body, encoding='utf-8')
value = json.loads(body)
except (TypeError, ValueError):
return body
if value is None:
Expand Down

0 comments on commit 3980bd9

Please sign in to comment.