refac
This commit is contained in:
@@ -264,7 +264,7 @@ async def fetch_url(
|
||||
return json.dumps({'error': 'Request context not available'})
|
||||
|
||||
try:
|
||||
content, _ = await asyncio.to_thread(get_content_from_url, __request__, url)
|
||||
content, _ = await get_content_from_url(__request__, url)
|
||||
|
||||
# Truncate if configured (WEB_FETCH_MAX_CONTENT_LENGTH)
|
||||
# Guard: content may be None if the web loader silently failed
|
||||
|
||||
Reference in New Issue
Block a user