From 6fca53c31d1056ff7eb27fdad7e163a6d9d96721 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Tue, 19 May 2026 18:32:02 -0400 Subject: [PATCH] Add changelog for #4525 --- changelog/4525.changed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/4525.changed.md 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:`.