DSM 6 docker error crash /sys/class/power_supply #1921

pull/1927/head
nicolargo 2021-08-17 17:33:56 +02:00
parent 84914bc4d8
commit a43f24af16
2 changed files with 9 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import sys
# Global name
# Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version
__version__ = '3.2.4_Beta01'
__version__ = '3.2.4_Beta02'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3'

View File

@ -56,7 +56,14 @@ class Plugin(GlancesPlugin):
stats_init_value=[])
# Init the sensor class
try:
self.glancesgrabbat = GlancesGrabBat()
except Exception as e:
logger.error("Can not init battery class ({})".format(e))
global batinfo_tag
global psutil_tag
batinfo_tag = False
psutil_tag = False
# We do not want to display the stat in a dedicated area
# The HDD temp is displayed within the sensors plugin