[blivet:master 05/10] Get rid of unnecessary pass statements

mulhern amulhern at redhat.com
Tue Mar 25 15:49:04 UTC 2014


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devicetree.py | 1 -
 blivet/iscsi.py      | 1 -
 2 files changed, 2 deletions(-)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index f47ba9e..f28febc 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1213,7 +1213,6 @@ class DeviceTree(object):
             except InvalidDiskLabelError:
                 log.warning("disklabel detected but not usable on %s",
                             device.name)
-                pass
             return
 
         # we're going to pass the "best" disklabel type into the DiskLabel
diff --git a/blivet/iscsi.py b/blivet/iscsi.py
index db3023d..ba3aaf0 100644
--- a/blivet/iscsi.py
+++ b/blivet/iscsi.py
@@ -162,7 +162,6 @@ class iscsi(object):
             except IOError as e:
                 log.error("Could not log into ibft iscsi target %s: %s",
                           node.name, str(e))
-                pass
 
         self.stabilize()
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list