mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix bug on bad storage stats read (#8275)
This commit is contained in:
parent
cff4b9651f
commit
e9376ca285
@ -303,6 +303,7 @@ def stats_snapshot(
|
|||||||
storage_stats = shutil.disk_usage(path)
|
storage_stats = shutil.disk_usage(path)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
stats["service"]["storage"][path] = {}
|
stats["service"]["storage"][path] = {}
|
||||||
|
continue
|
||||||
|
|
||||||
stats["service"]["storage"][path] = {
|
stats["service"]["storage"][path] = {
|
||||||
"total": round(storage_stats.total / pow(2, 20), 1),
|
"total": round(storage_stats.total / pow(2, 20), 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user