diff --git a/ui/server.py b/ui/server.py index 4a91a92b..57b6ccc5 100644 --- a/ui/server.py +++ b/ui/server.py @@ -141,6 +141,9 @@ def getAppConfig(): try: config_json_path = os.path.join(CONFIG_DIR, 'config.json') + if not os.path.exists(config_json_path): + return HTTPException(status_code=500, detail="No config file") + with open(config_json_path, 'r') as f: config_json_str = f.read() config = json.loads(config_json_str)