From 99c798bfe09d156d2e3af3d9bd84b40ade71f41c Mon Sep 17 00:00:00 2001 From: scopesorting Date: Thu, 7 Dec 2023 09:12:04 +0100 Subject: [PATCH] changing 'exit' with sys.exit to avoid 'NameError' for the exit call --- src/server/BreCal/local_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/BreCal/local_db.py b/src/server/BreCal/local_db.py index 1619ff3..85dff68 100644 --- a/src/server/BreCal/local_db.py +++ b/src/server/BreCal/local_db.py @@ -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)