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

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

 



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)

Attachment: pgpwiwJybqHmw.pgp
Description: PGP signature

_______________________________________________
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