Skip to content

Commit bfa63fd

Browse files
fix: format code to fix CI failures
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent fe3f617 commit bfa63fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airbyte_cdk/sources/file_based/file_types/unstructured_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ async def infer_schema(
137137
format = _extract_format(config)
138138
with stream_reader.open_file(file, self.file_read_mode, None, logger) as file_handle:
139139
filetype = self._get_filetype(file_handle, file)
140-
if (isinstance(filetype, str) or filetype not in self._supported_file_types()) and not format.skip_unprocessable_files:
140+
if (
141+
isinstance(filetype, str) or filetype not in self._supported_file_types()
142+
) and not format.skip_unprocessable_files:
141143
error_message = self._get_file_type_error_message(filetype)
142144
logger.error(f"File {file.uri} has unsupported type: {error_message}")
143145
raise AirbyteTracedException(

0 commit comments

Comments
 (0)