Merge pull request #2213 from bauerj/patch-2

Fix decimal usage
This commit is contained in:
ThomasV 2017-02-28 22:59:55 +01:00 committed by GitHub
commit 5513a64549
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ def json_encode(obj):
def json_decode(x):
try:
return json.loads(x, parse_float=decimal.Decimal)
return json.loads(x, parse_float=Decimal)
except:
return x