Fix bug on bad storage stats read (#8275)

This commit is contained in:
Nicolas Mowen 2023-10-22 12:35:19 -06:00 committed by GitHub
parent cff4b9651f
commit e9376ca285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),