NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Catch case where github sends bad json data (#13077)
Nicolas Mowen2e724291db20
diff --git a/frigate/stats/util.py b/frigate/stats/util.pyindex 09710b3581..ac28e3d89b 100644--- a/frigate/stats/util.py+++ b/frigate/stats/util.py@@ -4,6 +4,7 @@ import asyncioimport osimport shutilimport time+from json import JSONDecodeErrorfrom typing import Any, Optionalimport psutil@@ -35,7 +36,7 @@ def get_latest_version(config: FrigateConfig) -> str:"https://api.github.com/repos/blakeblackshear/frigate/releases/latest",timeout=10,)- except RequestException:+ except (RequestException, JSONDecodeError):return "unknown"response = request.json()