commit 1773bd6cd6b9aaa693c6c1cb865f88fc3597e09f
parent f3eeb8817e847cf5b1f8fd7db92b8486937e6da9
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 26 Sep 2019 13:11:34 +0200
Merge pull request #5658 from vesellov/master
bug fix in electrum/wallet.py
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -232,7 +232,7 @@ class Abstract_Wallet(AddressSynchronizer):
# convert invoices
for invoice_key, invoice in self.invoices.items():
- if invoice['type'] == PR_TYPE_ONCHAIN:
+ if invoice.get('type') == PR_TYPE_ONCHAIN:
outputs = [TxOutput(*output) for output in invoice.get('outputs')]
invoice['outputs'] = outputs