Browse Source

Fix decimal usage

master
Johann Bauer 9 years ago committed by GitHub
parent
commit
96686c4a2b
  1. 2
      lib/util.py

2
lib/util.py

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

Loading…
Cancel
Save