mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Arch linux package (2.11.1-2) psutil (v5.4.1): RuntimeWarning: ignoring OSError #1203
This commit is contained in:
parent
b1e6ad909c
commit
49fafb6db4
@ -20,6 +20,7 @@
|
|||||||
"""Sensors plugin."""
|
"""Sensors plugin."""
|
||||||
|
|
||||||
import psutil
|
import psutil
|
||||||
|
import warnings
|
||||||
|
|
||||||
from glances.logger import logger
|
from glances.logger import logger
|
||||||
from glances.compat import iteritems
|
from glances.compat import iteritems
|
||||||
@ -229,6 +230,9 @@ class GlancesGrabSensors(object):
|
|||||||
logger.debug("Cannot grab temperatures. Platform not supported.")
|
logger.debug("Cannot grab temperatures. Platform not supported.")
|
||||||
else:
|
else:
|
||||||
self.init_temp = True
|
self.init_temp = True
|
||||||
|
# Solve an issue #1203 concerning a RunTimeError warning message displayed
|
||||||
|
# in the curses interface.
|
||||||
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
# Fans
|
# Fans
|
||||||
self.init_fan = False
|
self.init_fan = False
|
||||||
|
Loading…
Reference in New Issue
Block a user