[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[master 1/2] text.messageWindow(): make it more resilient to the input.



Because snack is weak and will not accept e.g. an exception as the text
parameter.
---
 pyanaconda/text.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/text.py b/pyanaconda/text.py
index 3e52978..5a8fdab 100644
--- a/pyanaconda/text.py
+++ b/pyanaconda/text.py
@@ -272,6 +272,7 @@ class InstallInterface(InstallInterfaceBase):
 
     def messageWindow(self, title, text, type="ok", default = None,
 		      custom_icon=None, custom_buttons=[]):
+        text = str(text)
 	if type == "ok":
 	    ButtonChoiceWindow(self.screen, title, text,
 			       buttons=[TEXT_OK_BUTTON])
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]