Add changelog for #4525
This commit is contained in:
1
changelog/4525.changed.md
Normal file
1
changelog/4525.changed.md
Normal file
@@ -0,0 +1 @@
|
||||
- Services and transports with missing optional dependencies now raise `ImportError` instead of a bare `Exception` when their module is imported without the required extra installed. The original `ModuleNotFoundError` is preserved as `__cause__`, so code that wraps these imports can now use `except ImportError:` cleanly instead of `except Exception:`.
|
||||
Reference in New Issue
Block a user