diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2009-10-07 16:25:03 +0200 |
|---|---|---|
| committer | Hans de Goede <hdegoede@redhat.com> | 2009-10-07 16:26:46 +0200 |
| commit | 0cf5ce067c464cbc5dc3a9bf3a2eb4245e931c06 (patch) | |
| tree | 8f094c955a57e8c17a8c9ee338e7a4ebfa1eb18c /storage/formats | |
| parent | 683f6df10c4e3ca46d4f8c0192aca6a3189154f4 (diff) | |
| download | anaconda-0cf5ce067c464cbc5dc3a9bf3a2eb4245e931c06.tar.gz anaconda-0cf5ce067c464cbc5dc3a9bf3a2eb4245e931c06.tar.xz anaconda-0cf5ce067c464cbc5dc3a9bf3a2eb4245e931c06.zip | |
On lookup of a PartedDevice also check for _ped.DeviceException (#527699)
The machine in #527699 has one seriously broken disk, this causes
(py)parted to throw a different exception type when looking up the device
this patch catches this exception too, which will result in the disk
being handled as a removeable disk (ie cardreader) with no media present,
causing us to ignore it.
Diffstat (limited to 'storage/formats')
| -rw-r--r-- | storage/formats/disklabel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py index 944f535bb..9d07d31f2 100644 --- a/storage/formats/disklabel.py +++ b/storage/formats/disklabel.py @@ -125,7 +125,7 @@ class DiskLabel(DeviceFormat): # to find a device. try: self._partedDevice = parted.Device(path=self.device) - except _ped.IOException: + except (_ped.IOException, _ped.DeviceException): pass return self._partedDevice |
