Skip to content

NVR with realtime local object detection for IP cameras

Catch OS error (#15590)

Nicolas Mowenb149828c9ffc
diff --git a/frigate/stats/util.py b/frigate/stats/util.py
index c2d6586adb..d8e93c6ca8 100644
--- a/frigate/stats/util.py
+++ b/frigate/stats/util.py
@@ -293,7 +293,7 @@ def stats_snapshot(
for path in [RECORD_DIR, CLIPS_DIR, CACHE_DIR, "/dev/shm"]:
try:
storage_stats = shutil.disk_usage(path)
- except FileNotFoundError:
+ except (FileNotFoundError, OSError):
stats["service"]["storage"][path] = {}
continue