[firstboot 2/2] Fix no modules error handling

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

 



---
 progs/firstboot |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/progs/firstboot b/progs/firstboot
index 754bcdf..1ad7e31 100755
--- a/progs/firstboot
+++ b/progs/firstboot
@@ -99,7 +99,6 @@ if __name__ == '__main__':
         frontend.start_wm()
         frontend.merge_xres()
 
-
     # these modules import gtk, so we need to have a display first
     import firstboot.interface
     import meh.ui.gui
@@ -111,7 +110,7 @@ if __name__ == '__main__':
 
     # XXX set up meh
     handler_conf = meh.Config(programName='firstboot',
-                                 programVersion='@VERSION@')
+                              programVersion='@VERSION@')
     handler = meh.handler.ExceptionHandler(handler_conf,
                                            meh.ui.gui.GraphicalIntf(),
                                            meh.dump.ExceptionDump)
@@ -123,8 +122,7 @@ if __name__ == '__main__':
                                   reconfig=opts.reconfig)
 
     if not modules:
-        err('no modules found')
-        log.critical(err)
+        err = 'no modules found'
         raise RuntimeError(err)
 
     # TODO rewrite the interface
-- 
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