changing 'exit' with sys.exit to avoid 'NameError' for the exit call
This commit is contained in:
parent
31a5034e17
commit
99c798bfe0
@ -3,6 +3,7 @@ import pydapper
|
||||
import logging
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
config_path = None
|
||||
|
||||
@ -17,7 +18,7 @@ def initPool(instancePath):
|
||||
if not os.path.exists(config_path):
|
||||
print ('cannot find ' + config_path)
|
||||
print("instance path", instancePath)
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
f = open(config_path);
|
||||
connection_data = json.load(f)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user