Skip to content

Commit b8ecd5d

Browse files
committed
fix(integrations): mypy typing issue
1 parent 936064e commit b8ecd5d

File tree

1 file changed

+1
-1
lines changed
  • sentry_sdk/integrations/google_genai

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/google_genai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def set_span_data_for_request(span, integration, model, contents, kwargs):
491491
span.set_data(span_key, value)
492492

493493
# Set tools if available
494-
if hasattr(config, "tools"):
494+
if config is not None and hasattr(config, "tools"):
495495
tools = config.tools
496496
if tools:
497497
formatted_tools = _format_tools_for_span(tools)

0 commit comments

Comments
 (0)