[firstboot] Catch module errors and print a meaningful error message

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

 



---
 firstboot/interface.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/firstboot/interface.py b/firstboot/interface.py
index ce0ff50..5834010 100644
--- a/firstboot/interface.py
+++ b/firstboot/interface.py
@@ -343,6 +343,11 @@ class Interface(object):
         currentModule = self.moduleList[self._control.currentPage]
 
         currentModule.initializeUI()
+        if currentModule.vbox is None:
+            err = _("Module %s did not setup it's UI properly") % currentModule.title
+            logging.error(err)
+            raise RuntimeError, err
+
         self.rightBox.pack_start(currentModule.vbox)
         currentModule.focus()
         self.win.show_all()
-- 
1.7.5.4

_______________________________________________
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