Fix decimal usage
This commit is contained in:
parent
9c2d12923a
commit
96686c4a2b
|
@ -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…
Reference in New Issue