Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Development (http://www.linux-archive.org/debian-development/)
-   -   Catch FSError when detecting storage, prevent user from continuing. (http://www.linux-archive.org/debian-development/266676-catch-fserror-when-detecting-storage-prevent-user-continuing.html)

David Lehman 03-20-2009 03:52 AM

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

David Cantrell 03-20-2009 03:58 AM

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


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

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