We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47fd7e4 commit 4b40b3aCopy full SHA for 4b40b3a
sentry_sdk/integrations/anthropic.py
@@ -103,15 +103,15 @@ def __exit__(
103
exc_type: "Optional[type[BaseException]]",
104
exc_val: "Optional[BaseException]",
105
exc_tb: "Optional[Any]",
106
- ) -> bool:
+ ) -> None:
107
with capture_internal_exceptions():
108
if not hasattr(self._stream, "_span"):
109
- return False
+ return
110
111
if not hasattr(self._stream, "_model"):
112
self._stream._span.__exit__(exc_type, exc_val, exc_tb)
113
del self._stream._span
114
115
116
_set_streaming_output_data(
117
span=self._stream._span,
0 commit comments