File tree Expand file tree Collapse file tree
airbyte_cdk/sources/file_based/file_types Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments