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 > Gentoo > Gentoo Desktop

 
 
LinkBack Thread Tools
 
Old 03-19-2010, 10:05 AM
Hans de Goede
 
Default Catch NotImplementedError when scanning for disklabels (#566722)

This gets thrown by parted when it encounters a disklabel which it
recognizes but does not support, such as an AIX disklabel.
---
storage/formats/disklabel.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
index a9cdd00..3e78f27 100644
--- a/storage/formats/disklabel.py
+++ b/storage/formats/disklabel.py
@@ -130,7 +130,8 @@ class DiskLabel(DeviceFormat):
if self.exists:
try:
self._partedDisk = parted.Disk(device=self.partedDevice)
- except (_ped.DiskLabelException, _ped.IOException) as e:
+ except (_ped.DiskLabelException, _ped.IOException,
+ NotImplementedError) as e:
raise InvalidDiskLabelError()

if self._partedDisk.type == "loop":
--
1.7.0

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-22-2010, 09:34 AM
Ales Kozumplik
 
Default Catch NotImplementedError when scanning for disklabels (#566722)

On 03/19/2010 12:05 PM, Hans de Goede wrote:

This gets thrown by parted when it encounters a disklabel which it
recognizes but does not support, such as an AIX disklabel.
---
+ except (_ped.DiskLabelException, _ped.IOException,
+ NotImplementedError) as e:
raise InvalidDiskLabelError()


I am going to go ahead and say "ack".

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

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