[Sugar-devel] [PATCH sugar v2 21/21] pylint cleanup: disable warnings for reasonable catch-all exception handlers
Sascha Silbe
sascha-pgp at silbe.org
Fri Nov 19 16:13:29 EST 2010
Reviewed-by: James Cameron <quozl at laptop.org>
CC: Aleksey Lim <alsroot at member.fsf.org>
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 71124a4..00d1106 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 4d999da..db69bc5 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.2.3
More information about the Sugar-devel
mailing list