From cc8c7c780dd65cbbc4741fed44cde12e10aa3bef Mon Sep 17 00:00:00 2001 From: ecdsa Date: Mon, 8 Apr 2013 17:02:28 +0200 Subject: [PATCH] fix: don't raise exception in get_address_index --- lib/wallet.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 7d7151f..66c1f7d 100644 --- 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] -- 1.7.1