diff options
-rw-r--r-- | storage/devicetree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 5d85a6247..71d7a4830 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1235,7 +1235,7 @@ class DeviceTree(object): # If this device is protected, mark it as such now. Once the tree # has been populated, devices' protected attribute is how we will # identify protected devices. - if device.name in self.protectedDevNames: + if device and device.name in self.protectedDevNames: device.protected = True # now handle the device's formatting |