[PATCH 10/19] Log exceptions raised from PartitionDevice constructor.

David Lehman dlehman at redhat.com
Thu Oct 18 21:49:38 UTC 2012


Related: rhbz#867593
---
 pyanaconda/storage/devicetree.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 13ce493..9450ee0 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -832,11 +832,12 @@ class DeviceTree(object):
                                      major=udev_device_get_major(info),
                                      minor=udev_device_get_minor(info),
                                      exists=True, parents=[disk])
-        except DeviceError:
+        except DeviceError as e:
             # corner case sometime the kernel accepts a partition table
             # which gets rejected by parted, in this case we will
             # prompt to re-initialize the disk, so simply skip the
             # faulty partitions.
+            log.error("Failed to instantiate PartitionDevice: %s" % e)
             return
 
         self._addDevice(device)
-- 
1.7.7.6



More information about the anaconda-patches mailing list