mirror of https://github.com/nicolargo/glances
DSM 6 docker error crash /sys/class/power_supply #1921
parent
84914bc4d8
commit
a43f24af16
|
@ -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'
|
||||
|
||||
|
|
|
@ -56,7 +56,14 @@ class Plugin(GlancesPlugin):
|
|||
stats_init_value=[])
|
||||
|
||||
# Init the sensor class
|
||||
self.glancesgrabbat = GlancesGrabBat()
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue