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 > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-20-2009, 03:52 AM
David Lehman
 
Default Catch FSError when detecting storage, prevent user from continuing.

> + self.devicetree.populate()
> + self.fsset = FSSet(self.devicetree)
> + w.pop()
> + except FSError as e:
> + w.pop()
> + self.anaconda.intf.messageWindow(_("Error"),
> + _("Filesystem error detected, cannot continue."),
> + custom_icon="error")
> + sys.exit(0)

I'd move the w.pop() into a "finally" clause, but otherwise it looks
good.

>
> @property
> def devices(self):

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-20-2009, 03:58 AM
David Cantrell
 
Default Catch FSError when detecting storage, prevent user from continuing.

On 03/19/2009 06:52 PM, David Lehman wrote:

+ self.devicetree.populate()
+ self.fsset = FSSet(self.devicetree)
+ w.pop()
+ except FSError as e:
+ w.pop()
+ self.anaconda.intf.messageWindow(_("Error"),
+ _("Filesystem error detected, cannot continue."),
+ custom_icon="error")
+ sys.exit(0)


I'd move the w.pop() into a "finally" clause, but otherwise it looks
good.


Made that change, applied, pushed.





@property
def devices(self):


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
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 06:38 PM.

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