message is no longer a property of Exception in python3.
From: David Shea dshea@redhat.com
message is no longer a property of Exception in python3. --- pyanaconda/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/errors.py b/pyanaconda/errors.py index fb478e3..8e2ee12 100644 --- a/pyanaconda/errors.py +++ b/pyanaconda/errors.py @@ -148,7 +148,7 @@ def _storageResetHandler(self, exn): "can access by pressing ctrl-alt-f1 and then ctrl-b 2." "\n\nOnce you have resolved the issue you can retry the " "storage scan. If you do not fix it you will have to exit " - "the installer.") % {"errortxt": escape_markup(exn.message)}) + "the installer.") % {"errortxt": escape_markup(str(exn))}) details = _(exn.suggestion) buttons = (_("_Exit Installer"), _("_Retry")) if self.ui.showDetailedError(message, details, buttons=buttons):
@@ -148,7 +148,7 @@ def _storageResetHandler(self, exn): "can access by pressing ctrl-alt-f1 and then ctrl-b 2." "\n\nOnce you have resolved the issue you can retry the " "storage scan. If you do not fix it you will have to exit "
"the installer.") % {"errortxt": escape_markup(exn.message)})
"the installer.") % {"errortxt": escape_markup(str(exn))})
I think the ``str()`` call is not necessary in this case, but it can hardly hurt so feel free to keep it in place.
Looks good to me otherwise.
Added label: ACK.
Closed.
Pushed.
anaconda-patches@lists.fedorahosted.org