0

Update firecrawl.py

This commit is contained in:
Nicolas 2024-05-24 09:48:48 -07:00 committed by GitHub
parent 65fe9c4f80
commit 8c380d70a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,11 +115,8 @@ class FirecrawlApp:
)
if response.status_code == 200:
response = response.json()
<<<<<<< main
if response['success']:
=======
if response['success'] and 'data' in response:
>>>>>>> main
return response['data']
else:
raise Exception(f'Failed to search. Error: {response["error"]}')