提交 dc434bab 编写于 作者: N nicolargo

xMerge branch 'issue1203' into develop

......@@ -60,6 +60,7 @@ Bugs corrected:
* OSX - Python 3 and empty percent and res #1251
* Crashes when influxdb option set #1260
* AMP for kernel process is not working #1261
* Arch linux package (2.11.1-2) psutil (v5.4.1): RuntimeWarning: ignoring OSError #1203
Backward-incompatible changes:
......
......@@ -20,6 +20,7 @@
"""Sensors plugin."""
import psutil
import warnings
from glances.logger import logger
from glances.compat import iteritems
......@@ -229,6 +230,9 @@ class GlancesGrabSensors(object):
logger.debug("Cannot grab temperatures. Platform not supported.")
else:
self.init_temp = True
# Solve an issue #1203 concerning a RunTimeError warning message displayed
# in the curses interface.
warnings.filterwarnings("ignore")
# Fans
self.init_fan = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册