Skip to content

Commit

Permalink
fix: Scope.clinet AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldedik committed Nov 12, 2024
1 parent eae6c00 commit 247096c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structlog_sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 247096c

Please sign in to comment.