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
This adds backward compatibility for users importing exceptions from
`replicate.exceptions` instead of directly from the `replicate` module.
The new `replicate/exceptions.py` module re-exports all exception classes
from the internal `_exceptions` module, allowing both import patterns to work:
- `from replicate import ModelError` (existing)
- `from replicate.exceptions import ModelError` (legacy compatibility)
This ensures backward compatibility with code that uses the legacy import
pattern shown in documentation examples.
Includes comprehensive tests to verify all exception classes are available
through the legacy import path.
0 commit comments