Skip to content

Commit 4b40b3a

Browse files
return None from __exit__
1 parent 47fd7e4 commit 4b40b3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ def __exit__(
103103
exc_type: "Optional[type[BaseException]]",
104104
exc_val: "Optional[BaseException]",
105105
exc_tb: "Optional[Any]",
106-
) -> bool:
106+
) -> None:
107107
with capture_internal_exceptions():
108108
if not hasattr(self._stream, "_span"):
109-
return False
109+
return
110110

111111
if not hasattr(self._stream, "_model"):
112112
self._stream._span.__exit__(exc_type, exc_val, exc_tb)
113113
del self._stream._span
114-
return False
114+
return
115115

116116
_set_streaming_output_data(
117117
span=self._stream._span,

0 commit comments

Comments
 (0)