URI: 
       tadd error message for import_key failure - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c81d565665b583beaba8b74af0c5594cfd270373
   DIR parent 0f661aa3a137f925e6f436c56c38711b1de6d17d
  HTML Author: ecdsa <ecdsa@github>
       Date:   Sun,  5 May 2013 17:38:59 +0200
       
       add error message for import_key failure
       
       Diffstat:
         M lib/wallet.py                       |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -137,7 +137,10 @@ class Wallet:
            def import_key(self, sec, password):
                # check password
                seed = self.decode_seed(password)
       -        address = address_from_private_key(sec)
       +        try:
       +            address = address_from_private_key(sec)
       +        except:
       +            raise BaseException('Invalid private key')
        
                if self.is_mine(address):
                    raise BaseException('Address already in wallet')