From 5bca2d36bbd981bf13c102bd030d77bedf0284e1 Mon Sep 17 00:00:00 2001 From: Pavel Dedik Date: Tue, 12 Nov 2024 15:25:19 +0100 Subject: [PATCH 1/2] fix: Scope.clinet AttributeError --- structlog_sentry/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From 623b0d9faa919ec12c1f31f705cd0bab238c19f7 Mon Sep 17 00:00:00 2001 From: Pavel Dedik Date: Tue, 12 Nov 2024 15:25:50 +0100 Subject: [PATCH 2/2] chore: Bump version to 2.2.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"