Skip to content

Commit c650799

Browse files
committed
fix(integrations): ensure URL check for data URIs handles empty strings
1 parent c606b66 commit c650799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _transform_langchain_content_block(
182182
url = str(image_url_data)
183183

184184
# Check if it's a data URI (base64 encoded)
185-
if url.startswith("data:"):
185+
if url and url.startswith("data:"):
186186
# Parse data URI: data:mime_type;base64,content
187187
try:
188188
# Format: data:image/jpeg;base64,/9j/4AAQ...

0 commit comments

Comments
 (0)