Skip to content

Commit 84a160a

Browse files
remove finally
1 parent a5c79b2 commit 84a160a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sentry_sdk/integrations/langchain.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,6 @@ async def new_iterator_async() -> "AsyncIterator[Any]":
11431143
with capture_internal_exceptions():
11441144
span.__exit__(*exc_info)
11451145
raise
1146-
finally:
1147-
# Ensure cleanup happens even if iterator is abandoned or fails
1148-
span.__exit__(*exc_info)
11491146

11501147
if str(type(result)) == "<class 'async_generator'>":
11511148
result = new_iterator_async()

0 commit comments

Comments
 (0)