From 4953975f5e0afbb0424515738debe2ef6ed60059 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 26 Apr 2026 08:25:29 -0600 Subject: [PATCH] Cleanup --- frigate/genai/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frigate/genai/__init__.py b/frigate/genai/__init__.py index dd61f1194..20bf1d6fb 100644 --- a/frigate/genai/__init__.py +++ b/frigate/genai/__init__.py @@ -199,9 +199,7 @@ Each line represents a detection state, not necessarily unique individuals. The try: raw = json.loads(clean_json) except json.JSONDecodeError as je: - logger.error( - "Failed to parse review description JSON: %s", je - ) + logger.error("Failed to parse review description JSON: %s", je) return None # observations is required on the model; fill an empty default # if the response omitted it so attribute access stays safe. @@ -226,9 +224,7 @@ Each line represents a detection state, not necessarily unique individuals. The metadata.time = review_data["start"] return metadata except Exception as e: - logger.error( - f"Failed to post-process review metadata: {e}" - ) + logger.error(f"Failed to post-process review metadata: {e}") return None else: logger.debug(