commit 9815fb5a70e1f36f41f4f21a5ffeff706ea52ef8
parent 850d0dcd5ff74ce2ba72092dde8846de734a05c0
Author: Amir Taaki <genjix@riseup.net>
Date: Mon, 27 Aug 2012 03:10:28 +0200
pw_decode returns ValueError on fail.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum b/electrum
@@ -504,7 +504,7 @@ if __name__ == '__main__':
elif cmd == 'password':
try:
seed = wallet.pw_decode( wallet.seed, password)
- except StandardError:
+ except ValueError:
sys.exit("Error: Password does not decrypt this wallet.")
new_password = prompt_password('New password:')