commit 03403391131a1980a0a1186e44fcbacbba9085a7 parent 9115ef6416ec9fcadcdcbd774453272d613beef1 Author: Jimbo77 <onlineregular@gmail.com> Date: Sun, 19 Aug 2012 15:10:17 -0700 added ImportError and replaced print_error() with sys.exit() to reduce coupling Diffstat:
M | electrum | | | 10 | ++++------ |
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/electrum b/electrum @@ -24,15 +24,13 @@ except ImportError: try: import ecdsa -except: - print_error("Error: python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'") - sys.exit(1) +except ImportError: + sys.exit("Error: python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'") try: import aes -except: - print_error("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'") - sys.exit(1) +except ImportError: + sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'") try: from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password