mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-11 07:55:52 -06:00
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:
parent
ce94126b70
commit
aae4005a0a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user