Merge branch 'bugfix/disk-data' into tweak/dashboard-storage

This commit is contained in:
amcmanu3 2023-03-18 21:50:17 -04:00
commit 709539417f

View File

@ -191,6 +191,7 @@ class Stats:
# ENOENT, pop-up a Windows GUI error for a non-ready
# partition or just hang.
continue
try:
usage = psutil.disk_usage(part.mountpoint)
disk_data.append(
{
@ -206,6 +207,9 @@ class Stats:
"mount": part.mountpoint,
}
)
except PermissionError:
logger.debug(f"Permission error accessing {part.mountpoint}")
continue
return disk_data