1
0

importprivkey: do not import the same key twice

This commit is contained in:
ThomasV
2016-08-17 09:49:58 +02:00
parent 2e9cfb9800
commit 5733a5d125
3 changed files with 5 additions and 4 deletions

View File

@@ -2208,10 +2208,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
badkeys = []
addrlist = []
for key in text:
addr = self.wallet.import_key(key, password)
try:
addr = self.wallet.import_key(key, password)
except Exception as e:
except BaseException as e:
badkeys.append(key)
continue
if not addr: