Skip to content

Commit d3b48bf

Browse files
committed
Fix from other contributor pr
1 parent ed61be4 commit d3b48bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def new_iterator():
147147
elif event.type == "content_block_start":
148148
pass
149149
elif event.type == "content_block_delta":
150-
content_blocks.append(event.delta.text)
150+
if hasattr(event.delta, "text"):
151+
content_blocks.append(event.delta.text)
151152
elif event.type == "content_block_stop":
152153
pass
153154
elif event.type == "message_delta":

0 commit comments

Comments
 (0)