Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sentry_sdk/integrations/google_genai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,9 @@ def _extract_response_text(
if not hasattr(candidate, "content") or not hasattr(candidate.content, "parts"):
continue

if candidate.content is None or candidate.content.parts is None:
continue

for part in candidate.content.parts:
if getattr(part, "text", None):
texts.append(part.text)
Expand Down
Loading