mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 18:00:38 +08:00
fixed keyerror for data on sdk
This commit is contained in:
parent
1477ab2359
commit
7e9ad3cba7
@ -13,7 +13,7 @@ import os
|
|||||||
|
|
||||||
from .firecrawl import FirecrawlApp # noqa
|
from .firecrawl import FirecrawlApp # noqa
|
||||||
|
|
||||||
__version__ = "1.6.2"
|
__version__ = "1.6.3"
|
||||||
|
|
||||||
# Define the logger for the Firecrawl project
|
# Define the logger for the Firecrawl project
|
||||||
logger: logging.Logger = logging.getLogger("firecrawl")
|
logger: logging.Logger = logging.getLogger("firecrawl")
|
||||||
|
@ -629,7 +629,7 @@ class FirecrawlApp:
|
|||||||
while 'next' in status_data:
|
while 'next' in status_data:
|
||||||
status_response = self._get_request(status_data['next'], headers)
|
status_response = self._get_request(status_data['next'], headers)
|
||||||
status_data = status_response.json()
|
status_data = status_response.json()
|
||||||
data.extend(status_data['data'])
|
data.extend(status_data.get('data', []))
|
||||||
status_data['data'] = data
|
status_data['data'] = data
|
||||||
return status_data
|
return status_data
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user