From aae4005a0a503fb7a72199a1f5b8994be50693a6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 29 Jan 2012 13:07:16 -0500 Subject: [PATCH] details: Don't log exception if VM has no arch Like xen Domain-0. Exception was harmless but not really useful --- src/virtManager/details.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/virtManager/details.py b/src/virtManager/details.py index 670e3f788..e169b0b06 100644 --- a/src/virtManager/details.py +++ b/src/virtManager/details.py @@ -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