[Sugar-devel] [PATCH sugar 21/21] pylint cleanup: disable warnings for reasonable catch-all exception handlers

Sascha Silbe sascha-pgp at silbe.org
Sat Oct 16 18:20:23 EDT 2010


Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 1edee8f..931c59b 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -216,6 +216,7 @@ class BundleRegistry(gobject.GObject):
             try:
                 self._add_bundle(folder)
             except:
+                # pylint: disable=W0702
                 logging.exception('Error while processing installed activity'
                     ' bundle %s:', folder)
 
diff --git a/src/jarabe/model/network.py b/src/jarabe/model/network.py
index 4ae7ea8..6590ed1 100644
--- a/src/jarabe/model/network.py
+++ b/src/jarabe/model/network.py
@@ -569,6 +569,7 @@ class NMSettingsConnection(dbus.service.Object):
             res_init = getattr(libc, '__res_init')
             res_init(None)
         except:
+            # pylint: disable=W0702
             logging.exception('Error calling libc.__res_init')
 
     def set_secrets(self, secrets):
-- 
1.7.1



More information about the Sugar-devel mailing list