details: Don't log exception if VM has no arch

Like xen Domain-0. Exception was harmless but not really useful
This commit is contained in:
Cole Robinson 2012-01-29 13:07:16 -05:00
parent ce94126b70
commit aae4005a0a

View File

@ -2702,11 +2702,13 @@ class vmmDetails(vmmGObjectUI):
capscpu = None
try:
cpu_values = caps.get_cpu_values(self.vm.get_arch())
for c in cpu_values.cpus:
if model and c.model == model:
capscpu = c
break
arch = self.vm.get_arch()
if arch:
cpu_values = caps.get_cpu_values(arch)
for c in cpu_values.cpus:
if model and c.model == model:
capscpu = c
break
except:
pass