Update firecrawl.py
This commit is contained in:
parent
65fe9c4f80
commit
8c380d70a5
@ -115,11 +115,8 @@ class FirecrawlApp:
|
|||||||
)
|
)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response = response.json()
|
response = response.json()
|
||||||
<<<<<<< main
|
|
||||||
if response['success']:
|
|
||||||
=======
|
|
||||||
if response['success'] and 'data' in response:
|
if response['success'] and 'data' in response:
|
||||||
>>>>>>> main
|
|
||||||
return response['data']
|
return response['data']
|
||||||
else:
|
else:
|
||||||
raise Exception(f'Failed to search. Error: {response["error"]}')
|
raise Exception(f'Failed to search. Error: {response["error"]}')
|
||||||
|
Loading…
Reference in New Issue
Block a user