diff --git a/frigate/api/app.py b/frigate/api/app.py index 3f7d2786d..f19070a3a 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -177,8 +177,9 @@ def config(request: Request): # Add model plus data if plus is enabled if config["plus"]["enabled"]: - if "path" in config["model"]: - model_json_path = FilePath(config["model"]["path"]).with_suffix(".json") + model_path = config.get("model", {}).get("path") + if model_path: + model_json_path = FilePath(model_path).with_suffix(".json") try: with open(model_json_path, "r") as f: model_plus_data = json.load(f)