mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Try a patch for issue #1260
This commit is contained in:
parent
67a13ae53a
commit
fdd22cfb94
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user