forked from Github/frigate
Fix bug on bad storage stats read (#8275)
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user