tadded ImportError and replaced print_error() with sys.exit() to reduce coupling - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 03403391131a1980a0a1186e44fcbacbba9085a7 DIR parent 9115ef6416ec9fcadcdcbd774453272d613beef1 HTML 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(-) --- DIR diff --git a/electrum b/electrum t@@ -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