From 10dc7e4b24e4f832cd51c877fc98f62f846aebb6 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Wed, 15 Apr 2026 20:30:56 -0700 Subject: [PATCH 1/2] fix 'occured' -> 'occurred' typos in file_based and response_to_file_extractor Multiple error messages read 'occured'. Fixed to 'occurred'. String-literal-only change. Signed-off-by: SAY-5 --- airbyte_cdk/sources/file_based/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/file_based/exceptions.py b/airbyte_cdk/sources/file_based/exceptions.py index cd727463af..80c5ff2ae3 100644 --- a/airbyte_cdk/sources/file_based/exceptions.py +++ b/airbyte_cdk/sources/file_based/exceptions.py @@ -55,7 +55,7 @@ def yield_and_raise_collected(self) -> Any: # raising the single exception raise AirbyteTracedException( internal_message="Please check the logged errors for more information.", - message="Some errors occured while reading from the source.", + message="Some errors occurred while reading from the source.", failure_type=FailureType.config_error, ) From 0370c12b6d8a90070318ff471dee1a65dfc7e8fa Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Wed, 15 Apr 2026 20:31:09 -0700 Subject: [PATCH 2/2] fix same 'occured' typo in response_to_file_extractor.py Signed-off-by: SAY-5 --- .../declarative/extractors/response_to_file_extractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py b/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py index eea4b80b2a..6a647335a0 100644 --- a/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py +++ b/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py @@ -113,7 +113,7 @@ def _save_to_file(self, response: requests.Response) -> Tuple[str, str]: return tmp_file, response_encoding else: raise ValueError( - f"The IO/Error occured while verifying binary data. Tmp file {tmp_file} doesn't exist." + f"The IO/Error occurred while verifying binary data. Tmp file {tmp_file} doesn't exist." ) def _read_with_chunks( @@ -147,7 +147,7 @@ def _read_with_chunks( self.logger.info(f"Empty data received. {e}") yield from [] except IOError as ioe: - raise ValueError(f"The IO/Error occured while reading tmp data. Called: {path}", ioe) + raise ValueError(f"The IO/Error occurred while reading tmp data. Called: {path}", ioe) finally: # remove binary tmp file, after data is read os.remove(path)