From b149828c9ffc4cfeb1d0e8608a11c52fa9fa7173 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 18 Dec 2024 17:45:08 -0600 Subject: [PATCH] Catch OS error (#15590) --- frigate/stats/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/stats/util.py b/frigate/stats/util.py index c2d6586ad..d8e93c6ca 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