Browse Source

Merge pull request #2213 from bauerj/patch-2

Fix decimal usage
283
ThomasV 8 years ago
committed by GitHub
parent
commit
5513a64549
  1. 2
      lib/util.py

2
lib/util.py

@ -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

Loading…
Cancel
Save