changed to more descriptive exception
authorJimbo77 <onlineregular@gmail.com>
Fri, 24 Aug 2012 01:11:57 +0000 (18:11 -0700)
committerJimbo77 <onlineregular@gmail.com>
Fri, 24 Aug 2012 01:11:57 +0000 (18:11 -0700)
lib/wallet.py

index 126b9ed..478b6ae 100644 (file)
@@ -687,6 +687,7 @@ class Wallet:
             
             d = ast.literal_eval( data )  #parse raw data from reading wallet file
             interface.old_to_new(d)
+            
             self.seed_version = d.get('seed_version')
             self.master_public_key = d.get('master_public_key').decode('hex')
             self.use_encryption = d.get('use_encryption')
@@ -836,7 +837,7 @@ class Wallet:
                 try:
                     d.decode('hex')
                 except:
-                    raise BaseException("Invalid password")
+                    raise ValueError("Invalid password")
             return d
         else:
             return s