Skip to content

Commit

Permalink
Catch OS error
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 18, 2024
1 parent 3dc26e7 commit 0bc06d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/stats/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0bc06d8

Please sign in to comment.