ruff: enable B warnings (mainly suppressed exceptions and unused variables)
This commit is contained in:
parent
f563dee215
commit
8b1ec35286
30 changed files with 83 additions and 67 deletions
|
@ -62,7 +62,7 @@ def import_source(
|
|||
|
||||
class core:
|
||||
disabled_modules = [{module_name!r}]
|
||||
""")
|
||||
""", stacklevel=1)
|
||||
# try to check if this is a config error or based on dependencies not being installed
|
||||
if isinstance(err, (ImportError, AttributeError)):
|
||||
matched_config_err = warn_my_config_import_error(err, module_name=module_name, help_url=help_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue