Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update firecrawl.py

Nicolas8c380d70a5f3
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.py
index 0e4fc3e91..f28a057fd 100644
--- a/apps/python-sdk/firecrawl/firecrawl.py
+++ b/apps/python-sdk/firecrawl/firecrawl.py
@@ -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"]}')