commit cc8c7c780dd65cbbc4741fed44cde12e10aa3bef
parent 6609624fe0e3b4279e060b87dc56a093db43b06c
Author: ecdsa <ecdsa@github>
Date: Mon, 8 Apr 2013 17:02:28 +0200
fix: don't raise exception in get_address_index
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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]