tminor fix: ensure request amount is not None - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7866caf2a71abc8c81f59dffca868c0cc589bc6c DIR parent cf02e32f202fe3ddb2ca7f22c27ecdf6fcc45cfa HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 26 Aug 2019 16:59:38 +0200 minor fix: ensure request amount is not None Diffstat: M electrum/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/wallet.py b/electrum/wallet.py t@@ -1276,7 +1276,7 @@ class Abstract_Wallet(AddressSynchronizer): if r is None: return PR_UNKNOWN address = r['address'] - amount = r.get('amount', 0) + amount = r.get('amount', 0) or 0 timestamp = r.get('time', 0) if timestamp and type(timestamp) != int: timestamp = 0