tgetting rid of more unnecessary print_errors() - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit ddf5614af0df6594cf557dc6d492fa917a83adbe
DIR parent 1429ef71e139f72f256330baaf7327d6466b165e
HTML Author: Jimbo77 <onlineregular@gmail.com>
Date: Sun, 19 Aug 2012 18:24:02 -0700
getting rid of more unnecessary print_errors()
Diffstat:
M electrum | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
DIR diff --git a/electrum b/electrum
t@@ -501,9 +501,8 @@ if __name__ == '__main__':
elif cmd == 'password':
try:
seed = wallet.pw_decode( wallet.seed, password)
- except:
- print_error("Error: Password does not decrypt this wallet.")
- sys.exit(1)
+ except StandardError:
+ sys.exit("Error: Password does not decrypt this wallet.")
new_password = prompt_password('New password:')
wallet.update_password(seed, password, new_password)