Browse Source

minor fix: ensure request amount is not None

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
7866caf2a7
  1. 2
      electrum/wallet.py

2
electrum/wallet.py

@ -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

Loading…
Cancel
Save