diff --git a/glances/__init__.py b/glances/__init__.py index 641f06817282a3bf946ce21e2e796c823ff88a05..ef3ce49031aaf7c1ceb66c55ae6e519866dfc56e 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -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 ' __license__ = 'LGPLv3' diff --git a/glances/plugins/sensors/glances_batpercent.py b/glances/plugins/sensors/glances_batpercent.py index a77c3b60abb9e2e1b996f89c1c59375ad7f075f0..fd566b1ed4f7b96ab19a5f0bd505e7d00d3a4f19 100644 --- a/glances/plugins/sensors/glances_batpercent.py +++ b/glances/plugins/sensors/glances_batpercent.py @@ -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