Skip to content

Commit

Permalink
move log to info
Browse files Browse the repository at this point in the history
  • Loading branch information
yuming-long committed Sep 26, 2024
1 parent 9439add commit 44c7a0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unstructured_client/_hooks/custom/pdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def is_pdf(file: shared.Files) -> bool:
content = cast(bytes, file.content)
PdfReader(io.BytesIO(content), strict=True)
except (PdfReadError, UnicodeDecodeError):
logger.info("Loading PDF failed, so splitting is not enabled.")
return False

return True

0 comments on commit 44c7a0e

Please sign in to comment.