Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion airbyte_cdk/sources/file_based/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
Loading