From be9ef2cad856fed831ecdeb5c2c8118db309c34f Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 26 Dec 2016 14:06:11 +0100 Subject: [PATCH] pylint disable broad excepts when it make sense. --- bonobo/core/contexts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonobo/core/contexts.py b/bonobo/core/contexts.py index 5768202..3a35241 100644 --- a/bonobo/core/contexts.py +++ b/bonobo/core/contexts.py @@ -74,8 +74,8 @@ class PluginExecutionContext: try: self.plugin.run(self) - except Exception as exc: - print('error', type(exc), exc) + except Exception as exc: # pylint: disable=broad-except + self.handle_error(exc, traceback.format_exc()) sleep(0.25)