source: propogate help url for config errors
This commit is contained in:
parent
cef9b4c6d3
commit
dbd15a7ee8
2 changed files with 5 additions and 2 deletions
|
@ -27,6 +27,7 @@ def import_source(
|
|||
*,
|
||||
default: Iterable[T] = _DEFAULT_ITR,
|
||||
module_name: Optional[str] = None,
|
||||
help_url: Optional[str] = None,
|
||||
) -> Callable[..., Callable[..., Iterator[T]]]:
|
||||
"""
|
||||
doesn't really play well with types, but is used to catch
|
||||
|
@ -64,7 +65,7 @@ class core:
|
|||
""")
|
||||
# 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)
|
||||
matched_config_err = warn_my_config_import_error(err, help_url=help_url)
|
||||
# if we determined this wasn't a config error, and it was an attribute error
|
||||
# it could be *any* attribute error -- we should raise this since its otherwise a fatal error
|
||||
# from some code in the module failing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue