mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -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
|
capscpu = None
|
||||||
try:
|
try:
|
||||||
cpu_values = caps.get_cpu_values(self.vm.get_arch())
|
arch = self.vm.get_arch()
|
||||||
for c in cpu_values.cpus:
|
if arch:
|
||||||
if model and c.model == model:
|
cpu_values = caps.get_cpu_values(arch)
|
||||||
capscpu = c
|
for c in cpu_values.cpus:
|
||||||
break
|
if model and c.model == model:
|
||||||
|
capscpu = c
|
||||||
|
break
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user