fix: fix 'bare-except' for pylint
This commit is contained in:
parent
dfe2b94f4f
commit
3deab0b747
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
[MESSAGES CONTROL]
|
||||
disable=all
|
||||
enable=anomalous-backslash-in-string,
|
||||
bare-except,
|
||||
dangerous-default-value,
|
||||
inconsistent-return-statements,
|
||||
invalid-name,
|
||||
|
|
|
@ -115,7 +115,7 @@ def load_entry_points(group, ignore_errors=False):
|
|||
for entry_point in eps:
|
||||
try:
|
||||
ep = entry_point.load()
|
||||
except:
|
||||
except Exception:
|
||||
if not ignore_errors:
|
||||
raise
|
||||
log.warning("failed to load entry point: %s", entry_point,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue