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

Simon Schampijer simon at schampijer.de
Wed Nov 24 13:22:43 EST 2010


Reviewed-by: Simon Schampijer<simon at schampijer.de>

On 11/19/2010 10:13 PM, Sascha Silbe wrote:
> 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):



More information about the Sugar-devel mailing list