Code cleanup

This commit is contained in:
Joel Collins 2020-10-14 14:56:29 +00:00
parent 2bfb988460
commit 994e83dbeb
46 changed files with 261 additions and 318 deletions

View file

@ -8,9 +8,11 @@ def handle_extension_error(extension_name):
"""'gracefully' log an error if an extension fails to load."""
try:
yield
except Exception as e:
except Exception: # pylint: disable=W0703
logging.error(
f"Exception loading builtin extension {extension_name}: \n{traceback.format_exc()}"
"Exception loading builtin extension %s: \n%s",
extension_name,
traceback.format_exc(),
)