Skip to content

Commit

Permalink
Catch OS error (#15590)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Dec 18, 2024
1 parent 3dc26e7 commit b149828
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 b149828

Please sign in to comment.