Skip to content

NVR with realtime local object detection for IP cameras

Fix bug on bad storage stats read (#8275)

Nicolas Mowene9376ca285a5
diff --git a/frigate/stats.py b/frigate/stats.py
index 0839269963..addcd4a5b4 100644
--- a/frigate/stats.py
+++ b/frigate/stats.py
@@ -303,6 +303,7 @@ def stats_snapshot(
storage_stats = shutil.disk_usage(path)
except FileNotFoundError:
stats["service"]["storage"][path] = {}
+ continue
stats["service"]["storage"][path] = {
"total": round(storage_stats.total / pow(2, 20), 1),