---
blivet/devicetree.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 39e756c..0772c89 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1701,9 +1701,11 @@ class DeviceTree(object):
udev_settle()
info = udev_get_device(device.sysfsPath)
- self.handleUdevDeviceFormat(info, device)
- if device.format.type:
- log.info("got format: %s" % device.format)
+
+ if info:
+ self.handleUdevDeviceFormat(info, device)
+ if device.format.type:
+ log.info("got format: %s" % device.format)
def _handleInconsistencies(self):
for vg in [d for d in self.devices if d.type == "lvmvg"]:
--
1.8.3.1