From 4a35b52bef8432f4cfcf74befed44ecb0abde102 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 21 Oct 2024 07:48:31 -0600 Subject: [PATCH] Catch intel stats json decoding error --- frigate/util/services.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frigate/util/services.py b/frigate/util/services.py index 925ca6be8..784a802b4 100644 --- a/frigate/util/services.py +++ b/frigate/util/services.py @@ -279,7 +279,11 @@ def get_intel_gpu_stats() -> dict[str, str]: logger.error(f"Unable to poll intel GPU stats: {p.stderr}") return None else: - data = json.loads(f'[{"".join(p.stdout.split())}]') + try: + data = json.loads(f'[{"".join(p.stdout.split())}]') + except json.JSONDecodeError: + return None + results: dict[str, str] = {} render = {"global": []} video = {"global": []}