fix a race in listvms when a machine is shutting down
[invirt/packages/invirt-remote.git] / files / usr / sbin / sipb-xen-listvms
index 3c8b0a1..04dfc20 100755 (executable)
@@ -16,7 +16,7 @@ def live_vms():
     for domid in domids:
         try:
             name, data = get_dom(int(domid))
-        except ValueError:
+        except TypeError:
             continue # went down since we started
         if name.startswith('d_'):
             name = name[2:]