Glances Snap doesn't run on Orange Pi Zero running Ubuntu Core 16 #1517

This commit is contained in:
nicolargo 2019-08-11 10:40:08 +02:00
parent 5c195a1c6c
commit 2ec1adb17e

View File

@ -98,7 +98,7 @@ class Plugin(GlancesPlugin):
# and ignore all others (e.g. memory partitions such as /dev/shm)
try:
fs_stat = psutil.disk_partitions(all=False)
except UnicodeDecodeError:
except (UnicodeDecodeError, PermissionError):
return self.stats
# Optionnal hack to allow logicals mounts points (issue #448)