First patch for issue #754 - System exit if Cpu not supported by the Cpuinfo lib

This commit is contained in:
nicolargo 2015-12-13 18:11:15 +01:00
parent 2a7412991a
commit 53ca5b3d79

View File

@ -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