mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-25 23:21:45 +03:00
details: Report errors when launching addhw dialog
This commit is contained in:
parent
ee3e0ba450
commit
0c0b977df4
@ -1169,10 +1169,14 @@ class vmmDetails(vmmGObjectUI):
|
|||||||
self.window.get_widget("details-pages").set_current_page(PAGE_DETAILS)
|
self.window.get_widget("details-pages").set_current_page(PAGE_DETAILS)
|
||||||
|
|
||||||
def add_hardware(self, src_ignore):
|
def add_hardware(self, src_ignore):
|
||||||
|
try:
|
||||||
if self.addhw is None:
|
if self.addhw is None:
|
||||||
self.addhw = vmmAddHardware(self.vm)
|
self.addhw = vmmAddHardware(self.vm)
|
||||||
|
|
||||||
self.addhw.show()
|
self.addhw.show()
|
||||||
|
except Exception, e:
|
||||||
|
self.err.show_err((_("Error launching hardware dialog: %s") %
|
||||||
|
str(e)), "".join(traceback.format_exc()))
|
||||||
|
|
||||||
def remove_xml_dev(self, src_ignore):
|
def remove_xml_dev(self, src_ignore):
|
||||||
info = self.get_hw_selection(HW_LIST_COL_DEVICE)
|
info = self.get_hw_selection(HW_LIST_COL_DEVICE)
|
||||||
|
Loading…
Reference in New Issue
Block a user