electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit beacf88420b3d572914ddf19395f97c6e2537daf
parent c4fb58cd74089d446f3e1b941909cdca150dd889
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 26 Mar 2019 16:38:32 +0100

qt invoice list: fix #5222

Diffstat:
Melectrum/gui/qt/invoice_list.py | 2++
Melectrum/paymentrequest.py | 5++++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/invoice_list.py b/electrum/gui/qt/invoice_list.py @@ -71,6 +71,8 @@ class InvoiceList(MyTreeView): for idx, pr in enumerate(inv_list): key = pr.get_id() status = self.parent.invoices.get_status(key) + if status is None: + continue requestor = pr.get_requestor() exp = pr.get_expiration_date() date_str = format_time(exp) if exp else _('Never') diff --git a/electrum/paymentrequest.py b/electrum/paymentrequest.py @@ -537,4 +537,7 @@ class InvoiceStore(object): return self.invoices.values() def unpaid_invoices(self): - return [ self.invoices[k] for k in filter(lambda x: self.get_status(x)!=PR_PAID, self.invoices.keys())] + return [self.invoices[k] for k in + filter(lambda x: self.get_status(x) not in (PR_PAID, None), + self.invoices.keys()) + ]