We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c79b2 commit 84a160aCopy full SHA for 84a160a
1 file changed
sentry_sdk/integrations/langchain.py
@@ -1143,9 +1143,6 @@ async def new_iterator_async() -> "AsyncIterator[Any]":
1143
with capture_internal_exceptions():
1144
span.__exit__(*exc_info)
1145
raise
1146
- finally:
1147
- # Ensure cleanup happens even if iterator is abandoned or fails
1148
- span.__exit__(*exc_info)
1149
1150
if str(type(result)) == "<class 'async_generator'>":
1151
result = new_iterator_async()
0 commit comments