[PATCH 3/4] If there's an error while in text mode, display it.

Chris Lumens clumens at redhat.com
Fri Apr 12 18:14:07 UTC 2013


Related: rhbz#895756
---
 pyanaconda/errors.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/errors.py b/pyanaconda/errors.py
index 815a930..d3f9ffd 100644
--- a/pyanaconda/errors.py
+++ b/pyanaconda/errors.py
@@ -21,6 +21,8 @@
 import gettext
 _ = lambda x: gettext.ldgettext("anaconda", x)
 
+from pyanaconda.ui.tui import TextUserInterface
+
 __all__ = ["ERROR_RAISE", "ERROR_CONTINUE", "ERROR_RETRY",
            "ErrorHandler",
            "InvalidImageSizeError", "MissingImageError", "MediaUnmountError",
@@ -267,6 +269,9 @@ class ErrorHandler(object):
             kwargs["exception"] = exn
             rc = _map[exn.__class__.__name__](*args, **kwargs)
 
+            if isinstance(self.ui, TextUserInterface):
+                self.ui.run()
+
         return rc
 
 # Create a singleton of the ErrorHandler class.  It is up to the UserInterface
-- 
1.8.1.2



More information about the anaconda-patches mailing list