tqt invoice list: fix #5222 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit beacf88420b3d572914ddf19395f97c6e2537daf DIR parent c4fb58cd74089d446f3e1b941909cdca150dd889 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 26 Mar 2019 16:38:32 +0100 qt invoice list: fix #5222 Diffstat: M electrum/gui/qt/invoice_list.py | 2 ++ M electrum/paymentrequest.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/invoice_list.py b/electrum/gui/qt/invoice_list.py t@@ -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') DIR diff --git a/electrum/paymentrequest.py b/electrum/paymentrequest.py t@@ -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()) + ]