use sys.exit

This commit is contained in:
ThomasV 2015-02-03 12:29:04 +01:00
parent ca01e1d7be
commit b6c1b22c35
1 changed files with 1 additions and 2 deletions

View File

@ -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