ignore inaccessible filesystems

This commit is contained in:
Martinez 2015-12-28 11:25:46 +01:00
parent 50a5d88b42
commit 850d43bf28

View file

@ -504,7 +504,10 @@ class StatsPart(Part):
else:
short_name = " /"
stat = os.statvfs(dir)
try:
stat = os.statvfs(dir)
except PermissionError:
continue
stor_total = stat.f_blocks * stat.f_bsize
stor_free = stat.f_bavail * stat.f_bsize