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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux