[PATCH 08/11] e.message -> str(e)

Chris Lumens clumens at redhat.com
Thu Apr 23 18:54:15 UTC 2015


---
 blivet/devices/dm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices/dm.py b/blivet/devices/dm.py
index acf13d7..f980f64 100644
--- a/blivet/devices/dm.py
+++ b/blivet/devices/dm.py
@@ -99,7 +99,7 @@ class DMDevice(StorageDevice):
         try:
             return blockdev.dm.map_exists(self.mapName, True, True)
         except blockdev.DMError as e:
-            if "Not running as root" in e.message:
+            if "Not running as root" in str(e):
                 return False
             else:
                 raise
-- 
2.2.2



More information about the anaconda-patches mailing list