From 376783603ab4871cdb71c94f7703a03be2c1b08d Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 1 Mar 2018 17:26:30 +0200 Subject: [PATCH] Minor change in MyForm.rerenderAddressBook --- src/bitmessageqt/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 4cf36713..d4f19447 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1918,10 +1918,10 @@ class MyForm(settingsmixin.SMainWindow): for address in sorted( oldRows, key=lambda x: oldRows[x][2], reverse=True ): - if address in newRows: + try: completerList.append( newRows.pop(address)[0] + " <" + address + ">") - else: + except KeyError: self.ui.tableWidgetAddressBook.removeRow(oldRows[address][2]) for address in newRows: addRow(address, newRows[address][0], newRows[address][1])