3
0
Fork 0

fix: fix 'broad-exception-caught' for pylint

This commit is contained in:
Lance Edgar 2025-08-30 18:54:30 -05:00
parent 3deab0b747
commit 1a0fee3582
3 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@
disable=all
enable=anomalous-backslash-in-string,
bare-except,
broad-exception-caught,
dangerous-default-value,
inconsistent-return-statements,
invalid-name,

View file

@ -252,7 +252,7 @@ class InstallHandler(GenericHandler):
# just need to test interaction and this is a neutral way
try:
sa.inspect(engine).has_table('whatever')
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
return str(error)
return None

View file

@ -115,7 +115,7 @@ def load_entry_points(group, ignore_errors=False):
for entry_point in eps:
try:
ep = entry_point.load()
except Exception:
except Exception: # pylint: disable=broad-exception-caught
if not ignore_errors:
raise
log.warning("failed to load entry point: %s", entry_point,