Skip to content

Commit f36dd5d

Browse files
keep comment
1 parent 2a0e5e9 commit f36dd5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ def _wrap_synchronous_message_iterator(
373373

374374
try:
375375
for event in iterator:
376+
# Message and content types are aliases for corresponding Raw* types, introduced in
377+
# https://github.com/anthropics/anthropic-sdk-python/commit/bc9d11cd2addec6976c46db10b7c89a8c276101a
376378
if not isinstance(
377379
event,
378380
(
@@ -434,6 +436,8 @@ async def _wrap_asynchronous_message_iterator(
434436

435437
try:
436438
async for event in iterator:
439+
# Message and content types are aliases for corresponding Raw* types, introduced in
440+
# https://github.com/anthropics/anthropic-sdk-python/commit/bc9d11cd2addec6976c46db10b7c89a8c276101a
437441
if not isinstance(
438442
event,
439443
(

0 commit comments

Comments
 (0)