FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Desktop

 
 
LinkBack Thread Tools
 
Old 05-02-2012, 11:23 AM
Martin Gracik
 
Default 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
 

Thread Tools




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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org