Fix raise String -- raise runtime error instead. Thanks to Charles Coffing <ccoffing-at-novell-dot-com>

This commit is contained in:
Hugh O. Brock 2007-03-14 16:03:18 -04:00
parent 5092174199
commit 062165584e

View File

@ -443,9 +443,9 @@ class vmmDomain(gobject.GObject):
devdst = child.prop("dev")
if srcpath == None:
raise "missing source path"
raise RuntimeError("missing source path")
if devdst == None:
raise "missing destination device"
raise RuntimeError("missing destination device")
devtype = node.prop("device")
if devtype == None: