Fix "no such domain" error message from domain_lookup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-03-10 20:20:24 +00:00
1 parent 0549b00834
commit e8943dc06d
1 file changed
+1 -1
+1 -1
View File
@@ -495,7 +495,7 @@ class XendDomain:
self._refresh(refresh_shutdown = False)
dom = self.domain_lookup_nr(domid)
if not dom:
raise XendInvalidDomain("No domain named '%s'." % str(domid))
raise XendInvalidDomain(str(domid))
return dom
finally:
self.domains_lock.release()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.