changing 'exit' with sys.exit to avoid 'NameError' for the exit call

This commit is contained in:
scopesorting 2023-12-07 09:12:04 +01:00 committed by puls200
parent 31a5034e17
commit 99c798bfe0

View File

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