From 8c8eea0f9a6bfccbb1c357938c30757754691c1b Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 13 Sep 2019 22:48:33 -0700 Subject: [PATCH] Adjusted pylint settings --- scripts/wk/std.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index 82dcd8eb..e51b14e2 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -364,7 +364,6 @@ class TryAndPrint(): def _format_exception_message(self, _exception): """Format using the exception's args or name, returns str.""" - # pylint: disable=broad-except LOG.debug( 'Formatting exception: %s', _exception.__class__.__name__, @@ -387,7 +386,7 @@ class TryAndPrint(): if isinstance(arg, str): message = arg break - except Exception: + except Exception: # pylint: disable=broad-except # Just use the exception name instead pass @@ -395,7 +394,7 @@ class TryAndPrint(): if not message: try: message = _exception.__class__.__name__ - except Exception: + except Exception: # pylint: disable=broad-except message = 'UNKNOWN ERROR' # Fix multi-line messages @@ -407,7 +406,7 @@ class TryAndPrint(): ] lines[0] = lines[0].strip() message = '\n'.join(lines) - except Exception: + except Exception: # pylint: disable=broad-except pass # Done