mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
Fix raise String -- raise runtime error instead. Thanks to Charles Coffing <ccoffing-at-novell-dot-com>
This commit is contained in:
parent
5092174199
commit
062165584e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user