diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 94620c3a9c..52cca550d4 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -402,9 +402,9 @@ class XendDomain: val = dominfo.destroy() else: try: - val = xc.domain_destroy(domid) + val = xc.domain_destroy(int(domid)) except Exception, ex: - raise XendError(str(ex)) + raise XendInvalidDomain(str(domid)) return val def domain_migrate(self, domid, dst, live=False, resource=0, port=0):