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]
|
[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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue