mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
First patch for issue #754 - System exit if Cpu not supported by the Cpuinfo lib
This commit is contained in:
parent
2a7412991a
commit
53ca5b3d79
@ -25,10 +25,13 @@ from glances.plugins.glances_plugin import GlancesPlugin
|
||||
|
||||
import psutil
|
||||
|
||||
cpuinfo_tag = False
|
||||
try:
|
||||
from cpuinfo import cpuinfo
|
||||
except ImportError:
|
||||
cpuinfo_tag = False
|
||||
except:
|
||||
# Correct issue #754
|
||||
# Waiting for a correction on the upstream Cpuinfo lib
|
||||
pass
|
||||
else:
|
||||
cpuinfo_tag = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user