return links

This commit is contained in:
Anjor Kanekar 2024-09-03 22:36:29 +01:00 committed by Gergő Móricz
parent c45a132cd5
commit 2d597672be

View File

@ -238,7 +238,7 @@ class FirecrawlApp:
if response.status_code == 200:
response = response.json()
if response['success'] and 'links' in response:
return response
return response['links']
else:
raise Exception(f'Failed to map URL. Error: {response["error"]}')
else: