Load plugin - OSError: [WinError 87] on Windows 10 #1965

pull/1968/head
nicolargo 2021-11-29 11:25:11 +01:00
parent a3d0dfc1e3
commit e4b4e702e6
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Plugin(GlancesPlugin):
"""Get load average. On both Linux and Windows thanks to PsUtil"""
try:
return psutil.getloadavg()
except AttributeError:
except (AttributeError, OSError):
pass
try:
return os.getloadavg()