From 7e9ad3cba70e3d4d57717c4fac265f38d91ab37f Mon Sep 17 00:00:00 2001 From: rafaelmmiller <150964962+rafaelsideguide@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:17:19 -0300 Subject: [PATCH] fixed keyerror for data on sdk --- apps/python-sdk/firecrawl/__init__.py | 2 +- apps/python-sdk/firecrawl/firecrawl.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.py index 24a4b00e..207312b0 100644 --- a/apps/python-sdk/firecrawl/__init__.py +++ b/apps/python-sdk/firecrawl/__init__.py @@ -13,7 +13,7 @@ import os from .firecrawl import FirecrawlApp # noqa -__version__ = "1.6.2" +__version__ = "1.6.3" # Define the logger for the Firecrawl project logger: logging.Logger = logging.getLogger("firecrawl") diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.py index 43e940ea..59130784 100644 --- a/apps/python-sdk/firecrawl/firecrawl.py +++ b/apps/python-sdk/firecrawl/firecrawl.py @@ -629,7 +629,7 @@ class FirecrawlApp: while 'next' in status_data: status_response = self._get_request(status_data['next'], headers) status_data = status_response.json() - data.extend(status_data['data']) + data.extend(status_data.get('data', [])) status_data['data'] = data return status_data else: