From 02a7e8469dfdd154a11bc50533fd8cceaced12f5 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 22 Oct 2023 12:10:03 -0600 Subject: [PATCH] Fix bug on bad storage stats read --- frigate/stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/stats.py b/frigate/stats.py index 083926996..addcd4a5b 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),