Skip to content

Commit b3389f7

Browse files
style: apply ruff formatting to unstructured_parser.py
Co-Authored-By: unknown <>
1 parent 0651862 commit b3389f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

airbyte_cdk/sources/file_based/file_types/unstructured_parser.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,15 @@ def _read_file_locally(
368368
elements = unstructured_partition_pdf(file=file, strategy=strategy)
369369
elif filetype == FileType.DOCX:
370370
if not unstructured_partition_docx:
371-
raise self._create_parse_error(remote_file, "DOCX partition function is not available")
371+
raise self._create_parse_error(
372+
remote_file, "DOCX partition function is not available"
373+
)
372374
elements = unstructured_partition_docx(file=file)
373375
elif filetype == FileType.PPTX:
374376
if not unstructured_partition_pptx:
375-
raise self._create_parse_error(remote_file, "PPTX partition function is not available")
377+
raise self._create_parse_error(
378+
remote_file, "PPTX partition function is not available"
379+
)
376380
elements = unstructured_partition_pptx(file=file)
377381
except RecordParseError:
378382
raise

0 commit comments

Comments
 (0)