From: Amir Taaki Date: Sun, 26 Aug 2012 14:05:05 +0000 (+0200) Subject: Explanation: Doesn't preserve the same behaviour as code throws BaseException not... X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=ce584890ea16b770280fcda814b7a7873dda8e5b;p=electrum-nvc.git Explanation: Doesn't preserve the same behaviour as code throws BaseException not SystemExit. Therefore it wasn't meant to be catching user errors. Revert "Added more descriptive error if wallet cannot be loaded" This reverts commit 47432b32c8aac09bbeae20a5d03f3eb2cbb83288. --- diff --git a/electrum b/electrum index 93a236c..7a384c2 100755 --- a/electrum +++ b/electrum @@ -179,8 +179,8 @@ if __name__ == '__main__': found = wallet.file_exists if not found: found = gui.restore_or_create() - except IOError: - exit("Error retrieving wallet file.") + except SystemExit, e: + exit(e) except BaseException, e: import traceback traceback.print_exc(file=sys.stdout)