From 96686c4a2b4f3201eb973c90d5591410cddba7d0 Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Tue, 28 Feb 2017 22:58:35 +0100 Subject: [PATCH] Fix decimal usage --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index c5d43ea29..71df9bac6 100644 --- a/lib/util.py +++ b/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