Skip to content

Commit 23d2fbc

Browse files
committed
fix(integrations): pre-initialize variable to avoid NameError
1 parent 7afc3a1 commit 23d2fbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def _set_input_data(span, kwargs, integration):
134134
):
135135
normalized_messages = []
136136
if system_prompt:
137+
system_prompt_content = None
137138
if isinstance(system_prompt, str):
138139
system_prompt_content = system_prompt
139140
elif isinstance(system_prompt, Iterable):

0 commit comments

Comments
 (0)