From 1b1601e4c449254b114522b3c49ab4b126f89cc8 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 15 Nov 2024 21:20:29 -0600 Subject: Update config and work on shell/docker --- config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config.py') diff --git a/config.py b/config.py index 620b301..9b6f23c 100644 --- a/config.py +++ b/config.py @@ -1,7 +1,6 @@ import jsonschema import os import yaml -import sys import logging from colorlog import ColoredFormatter @@ -66,7 +65,9 @@ config: "`config.yaml` was not found, a template has been created." " Please fill out the necessary information and restart." ) - sys.exit() + return False + + return True # Validate the options within config.yaml @@ -78,7 +79,7 @@ def validate_config(file_contents): jsonschema.validate(config, schema) except jsonschema.ValidationError as e: LOG.error(e.message) - sys.exit() + return False # Make IP_TO_LOCATION a boolean IP_TO_LOCATION = bool(config["config"]["ip_to_location"]) -- cgit v1.2.3-70-g09d2