mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
create: Fix backtrace when reporting OS error (bz 1241902)
This commit is contained in:
@@ -1403,7 +1403,7 @@ class vmmCreate(vmmGObjectUI):
|
||||
if variant:
|
||||
guest.os_variant = variant
|
||||
except ValueError, e:
|
||||
self.err.show_err(_("Error setting OS information."), e)
|
||||
self.err.show_err(_("Error setting OS information."), str(e))
|
||||
return None
|
||||
|
||||
if guest.os.is_arm64():
|
||||
|
||||
@@ -89,6 +89,8 @@ class vmmErrorDialog(vmmGObject):
|
||||
tb = "".join(traceback.format_exc()).strip()
|
||||
if tb != "None":
|
||||
details += "\n\n" + tb
|
||||
else:
|
||||
details = str(details)
|
||||
|
||||
if debug:
|
||||
debugmsg = "error dialog message:\nsummary=%s" % summary
|
||||
|
||||
Reference in New Issue
Block a user