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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-05-2012, 02:53 PM
"Brian C. Lane"
 
Default Catch module errors and print a meaningful error message

On Thu, Apr 05, 2012 at 11:26:12AM +0200, Martin Gracik wrote:
> ---
> 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

Ack

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-05-2012, 04:10 PM
Chris Lumens
 
Default Catch module errors and print a meaningful error message

> 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
^

There shouldn't be an apostrophe there.

- Chris

_______________________________________________
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 02:19 AM.

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