diff --git a/electrum/wallet.py b/electrum/wallet.py index f2a71c71a..4f288872d 100644 --- 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