You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56bca2a
Browse filesBrowse the repository at this point in the historyBrowse files
fix: Name the extra to install in optional-dependency import errors (#1046)
Accessing a symbol guarded by `try_import` without its extra installed
raises an `ImportError` that now also names the extra to install:
```
No module named 'httpx2'. Install the optional 'httpx' extra to use it: pip install 'apify-client[httpx]'
```
`try_import` takes `extra_name` next to `dependency_name`, and both
guarded sites (`httpx`, `brotli`) pass it.
*✍️ Drafted by Claude Code*
0 commit comments