Fix decimal usage

This commit is contained in:
Johann Bauer 2017-02-28 22:58:35 +01:00 committed by GitHub
parent 9c2d12923a
commit 96686c4a2b
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