Adjusted pylint settings

This commit is contained in:
2Shirt 2019-09-13 22:48:33 -07:00
parent 7cb5ecd09f
commit 8c8eea0f9a
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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