提交 fdd22cfb 编写于 作者: N nicolargo

Try a patch for issue #1260

上级 67a13ae5
......@@ -38,8 +38,9 @@ except ImportError:
psutil_tag = True
try:
psutil.sensors_battery()
except AttributeError:
except (OSError, AttributeError) as e:
logger.debug("Cannot grab battery status. Platform not supported.")
logger.error(e)
psutil_tag = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册