3
0
Fork 0

fix: fix 'bare-except' for pylint

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

View file

@ -3,6 +3,7 @@
[MESSAGES CONTROL] [MESSAGES CONTROL]
disable=all disable=all
enable=anomalous-backslash-in-string, enable=anomalous-backslash-in-string,
bare-except,
dangerous-default-value, dangerous-default-value,
inconsistent-return-statements, inconsistent-return-statements,
invalid-name, invalid-name,

View file

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