git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6609624
)
fix: don't raise exception in get_address_index
author
ecdsa
<ecdsa@github>
Mon, 8 Apr 2013 15:02:28 +0000 (17:02 +0200)
committer
ecdsa
<ecdsa@github>
Mon, 8 Apr 2013 15:02:28 +0000 (17:02 +0200)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
7d7151f
..
66c1f7d
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-186,7
+186,7
@@
class Wallet:
def get_address_index(self, address):
if address in self.imported_keys.keys():
- raise BaseException("imported key")
+ return -1, None
for account in self.accounts.keys():
for for_change in [0,1]:
addresses = self.accounts[account][for_change]