Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Desktop (http://www.linux-archive.org/ubuntu-desktop/)
-   -   Fix no modules error handling (http://www.linux-archive.org/ubuntu-desktop/662192-fix-no-modules-error-handling.html)

Martin Gracik 05-02-2012 11:23 AM

Fix no modules error handling
 
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.