Try a patch for issue #1260

This commit is contained in:
nicolargo 2018-05-15 21:48:32 +02:00
parent 67a13ae53a
commit fdd22cfb94

View File

@ -38,8 +38,9 @@ except ImportError:
psutil_tag = True psutil_tag = True
try: try:
psutil.sensors_battery() psutil.sensors_battery()
except AttributeError: except (OSError, AttributeError) as e:
logger.debug("Cannot grab battery status. Platform not supported.") logger.debug("Cannot grab battery status. Platform not supported.")
logger.error(e)
psutil_tag = False psutil_tag = False