From b6c1b22c3536e5e1a36d9d7219511c9ada3ba780 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 3 Feb 2015 12:29:04 +0100 Subject: [PATCH] use sys.exit --- electrum | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum b/electrum index 75e5e0a8c..5fb3c91fa 100755 --- a/electrum +++ b/electrum @@ -69,8 +69,7 @@ from google.protobuf import descriptor_pb2 try: from ecdsa.ecdsa import curve_secp256k1, generator_secp256k1 except Exception: - print "cannot import ecdsa.curve_secp256k1. You probably need to upgrade ecdsa.\nTry: sudo pip install --upgrade ecdsa" - exit() + sys.exit("cannot import ecdsa.curve_secp256k1. You probably need to upgrade ecdsa.\nTry: sudo pip install --upgrade ecdsa") # load local module as electrum