mirror of https://github.com/nicolargo/glances
First patch for issue #754 - System exit if Cpu not supported by the Cpuinfo lib
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