diff --git a/changelog/4525.changed.md b/changelog/4525.changed.md new file mode 100644 index 000000000..119a88f3e --- /dev/null +++ b/changelog/4525.changed.md @@ -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:`.