提交 a43f24af 编写于 作者: N nicolargo

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

上级 84914bc4
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册