fix: catch ImportError in dotted path resolution for broken modules

This commit is contained in:
Greyson LaLonde
2026-03-19 21:25:29 -04:00
parent 870113335b
commit c1abefbbf3

View File

@@ -101,7 +101,7 @@ def _resolve_dotted_path(path: str) -> Callable[..., Any]:
module_path = ".".join(parts[:i])
try:
obj: Any = importlib.import_module(module_path)
except (ModuleNotFoundError, ValueError):
except (ImportError, ValueError):
continue
# Walk the remaining attribute chain.
try: