fix: don't raise exception in get_address_index
authorecdsa <ecdsa@github>
Mon, 8 Apr 2013 15:02:28 +0000 (17:02 +0200)
committerecdsa <ecdsa@github>
Mon, 8 Apr 2013 15:02:28 +0000 (17:02 +0200)
lib/wallet.py

index 7d7151f..66c1f7d 100644 (file)
@@ -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]