Closed crawler instance in a finally block

This commit is contained in:
Geoff-Robin 2025-10-07 22:15:06 +05:30
parent fcd91a9709
commit fc660e4027

View file

@ -82,6 +82,8 @@ async def fetch_page_content(
except Exception as e:
logger.error(f"Error fetching page content: {str(e)}")
raise
finally:
crawler.close()
async def fetch_with_tavily(