mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 19:25:27 +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
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user