提交 6c6d5797 编写于 作者: N nicolargo

Correct test issue on Travis CI

上级 32bd0408
...@@ -111,7 +111,7 @@ class GlancesGrabBat(object): ...@@ -111,7 +111,7 @@ class GlancesGrabBat(object):
'label': 'Battery', 'label': 'Battery',
'value': self.battery_percent, 'value': self.battery_percent,
'unit': '%'}] 'unit': '%'}]
elif psutil_tag: elif psutil_tag and hasattr(self.bat.sensors_battery(), 'percent'):
# Use the PSUtil 5.2.0 or higher lib to grab the stats # Use the PSUtil 5.2.0 or higher lib to grab the stats
# Give directly the battery percent # Give directly the battery percent
self.bat_list = [{ self.bat_list = [{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册