[blivet-gui:master 9/9] Suppress broad-except pylint errors.

mulhern amulhern at redhat.com
Wed Jan 14 16:53:42 UTC 2015


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivetgui/processing_window.py |  2 +-
 blivetgui/utils.py             | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/blivetgui/processing_window.py b/blivetgui/processing_window.py
index 8d4ac8e..ce29e56 100644
--- a/blivetgui/processing_window.py
+++ b/blivetgui/processing_window.py
@@ -128,6 +128,6 @@ class ProcessingActions(Gtk.Dialog):
             self.list_partitions.b.blivet_do_it()
             GObject.idle_add(self.end)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
             self.list_partitions.b.blivet_reset()
             GObject.idle_add(self.end, e, traceback.format_exc())
diff --git a/blivetgui/utils.py b/blivetgui/utils.py
index dff6886..7450954 100644
--- a/blivetgui/utils.py
+++ b/blivetgui/utils.py
@@ -404,7 +404,7 @@ class BlivetUtils(object):
             action = blivet.deviceaction.ActionDestroyFormat(disk_device)
             self.storage.devicetree.registerAction(action)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
             return
@@ -438,7 +438,7 @@ class BlivetUtils(object):
             self.storage.devicetree.registerAction(ac_dev)
             actions.append(ac_dev)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
             return
@@ -530,7 +530,7 @@ class BlivetUtils(object):
             blivet.partitioning.doPartitioning(self.storage)
             return actions
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
 
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
@@ -797,7 +797,7 @@ class BlivetUtils(object):
                     try:
                         self.storage.devicetree.registerAction(ac_fmt)
 
-                    except Exception as e:
+                    except Exception as e: # pylint: disable=broad-except
                         message_dialogs.ExceptionDialog(self.main_window,
                             str(e), traceback.format_exc())
                         return
@@ -895,7 +895,7 @@ class BlivetUtils(object):
 
             blivet.partitioning.doPartitioning(self.storage)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
 
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
@@ -917,7 +917,7 @@ class BlivetUtils(object):
             ac_rm = blivet.deviceaction.ActionRemoveMember(container, parent)
             self.storage.devicetree.registerAction(ac_rm)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
 
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
@@ -962,7 +962,7 @@ class BlivetUtils(object):
 
             actions.append(ac_add)
 
-        except Exception as e:
+        except Exception as e: # pylint: disable=broad-except
 
             message_dialogs.ExceptionDialog(self.main_window, str(e),
                 traceback.format_exc())
-- 
1.9.3



More information about the anaconda-patches mailing list