From 2815d91affccf9ed6a8015a1e9e5c2d2c54620ad Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 1 Nov 2015 16:35:43 -0800 Subject: [PATCH] EncodeDecimal must return a serializable type --- bitcoinrpc/authproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py index 088c86b..36e9dd9 100644 --- a/bitcoinrpc/authproxy.py +++ b/bitcoinrpc/authproxy.py @@ -74,7 +74,7 @@ def __repr__(self): def EncodeDecimal(o): if isinstance(o, decimal.Decimal): - return round(o, 8) + return float(round(o, 8)) raise TypeError(repr(o) + " is not JSON serializable") class AuthServiceProxy(object):