diff --git a/pyproject.toml b/pyproject.toml index 2689a7b..8fd9dcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "structlog-sentry" -version = "2.2.0" +version = "2.2.1" description = "Sentry integration for structlog" authors = ["Kiwi.com platform "] license = "MIT" diff --git a/structlog_sentry/__init__.py b/structlog_sentry/__init__.py index b1c2fae..dc0a47c 100644 --- a/structlog_sentry/__init__.py +++ b/structlog_sentry/__init__.py @@ -119,7 +119,7 @@ def _get_event_and_hint(self, event_dict: EventDict) -> tuple[dict, dict]: has_exc_info = exc_info and exc_info != (None, None, None) if has_exc_info: - client = self._get_scope().client + client = self._get_scope().get_client() options: dict[str, Any] = client.options if client else {} event, hint = event_from_exception( exc_info,