Adjusted pylint settings
This commit is contained in:
parent
7cb5ecd09f
commit
8c8eea0f9a
1 changed files with 3 additions and 4 deletions
|
|
@ -364,7 +364,6 @@ class TryAndPrint():
|
||||||
|
|
||||||
def _format_exception_message(self, _exception):
|
def _format_exception_message(self, _exception):
|
||||||
"""Format using the exception's args or name, returns str."""
|
"""Format using the exception's args or name, returns str."""
|
||||||
# pylint: disable=broad-except
|
|
||||||
LOG.debug(
|
LOG.debug(
|
||||||
'Formatting exception: %s',
|
'Formatting exception: %s',
|
||||||
_exception.__class__.__name__,
|
_exception.__class__.__name__,
|
||||||
|
|
@ -387,7 +386,7 @@ class TryAndPrint():
|
||||||
if isinstance(arg, str):
|
if isinstance(arg, str):
|
||||||
message = arg
|
message = arg
|
||||||
break
|
break
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-except
|
||||||
# Just use the exception name instead
|
# Just use the exception name instead
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -395,7 +394,7 @@ class TryAndPrint():
|
||||||
if not message:
|
if not message:
|
||||||
try:
|
try:
|
||||||
message = _exception.__class__.__name__
|
message = _exception.__class__.__name__
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-except
|
||||||
message = 'UNKNOWN ERROR'
|
message = 'UNKNOWN ERROR'
|
||||||
|
|
||||||
# Fix multi-line messages
|
# Fix multi-line messages
|
||||||
|
|
@ -407,7 +406,7 @@ class TryAndPrint():
|
||||||
]
|
]
|
||||||
lines[0] = lines[0].strip()
|
lines[0] = lines[0].strip()
|
||||||
message = '\n'.join(lines)
|
message = '\n'.join(lines)
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-except
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue