From 12a2e61711651d19066562608f7c63ef57c7f060 Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Mon, 17 Mar 2025 22:52:32 -0400 Subject: [PATCH] check for model too --- frigate/api/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)