From a86b4c4e58c32ddba8d5eb90733786f6c1518f93 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Mon, 18 Jul 2016 08:45:14 -0500 Subject: [PATCH] bug fix: use sys.exit() not exit() --- scripts/migrate_lbryum_to_lbrycrd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/migrate_lbryum_to_lbrycrd.py b/scripts/migrate_lbryum_to_lbrycrd.py index 19391ba75..da49bd7dd 100644 --- a/scripts/migrate_lbryum_to_lbrycrd.py +++ b/scripts/migrate_lbryum_to_lbrycrd.py @@ -35,13 +35,13 @@ def ensureCliIsOnPathAndServerIsRunning(): output = subprocess.check_output(['lbrycrd-cli', 'getinfo']) except OSError: print 'Failed to run: lbrycrd-cli needs to be on the PATH' - exit(1) + sys.exit(1) except subprocess.CalledProcessError: print 'Failed to run: could not connect to the lbrycrd server.' print 'Make sure it is running and able to be connected to.' print 'One way to do this is to run:' print ' lbrycrdd -server -printtoconsole' - exit(1) + sys.exit(1) def validateAddress(addr): @@ -70,7 +70,7 @@ def getWallet(path=None): storage = WalletStorage(path) if not storage.file_exists: print "Failed to run: No wallet to migrate" - exit(1) + sys.exit(1) return Wallet(storage)