mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
minor fix: ensure request amount is not None
This commit is contained in:
parent
cf02e32f20
commit
7866caf2a7
1 changed files with 1 additions and 1 deletions
|
@ -1276,7 +1276,7 @@ class Abstract_Wallet(AddressSynchronizer):
|
||||||
if r is None:
|
if r is None:
|
||||||
return PR_UNKNOWN
|
return PR_UNKNOWN
|
||||||
address = r['address']
|
address = r['address']
|
||||||
amount = r.get('amount', 0)
|
amount = r.get('amount', 0) or 0
|
||||||
timestamp = r.get('time', 0)
|
timestamp = r.get('time', 0)
|
||||||
if timestamp and type(timestamp) != int:
|
if timestamp and type(timestamp) != int:
|
||||||
timestamp = 0
|
timestamp = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue