tfix #4330 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 864706574bacc3f3564f30a18b178066fbfde009 DIR parent 034b0a03130138db53661de29cdac0a66a499f12 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 2 May 2018 11:56:03 +0200 fix #4330 Diffstat: M gui/qt/request_list.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/request_list.py b/gui/qt/request_list.py t@@ -51,7 +51,10 @@ class RequestList(MyTreeWidget): if not item.isSelected(): return addr = str(item.text(1)) - req = self.wallet.receive_requests[addr] + req = self.wallet.receive_requests.get(addr) + if req is None: + self.update() + return expires = age(req['time'] + req['exp']) if req.get('exp') else _('Never') amount = req['amount'] message = self.wallet.labels.get(addr, '') t@@ -110,7 +113,10 @@ class RequestList(MyTreeWidget): if not item: return addr = str(item.text(1)) - req = self.wallet.receive_requests[addr] + req = self.wallet.receive_requests.get(addr) + if req is None: + self.update() + return column = self.currentColumn() column_title = self.headerItem().text(column) column_data = item.text(column)