Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing crash in chunk_text for empty file #389

Merged
merged 7 commits into from
Sep 13, 2024
Merged

Fixing crash in chunk_text for empty file #389

merged 7 commits into from
Sep 13, 2024

Conversation

jamesbraza
Copy link
Collaborator

It looks like chunk_pdf handles empty PDFs by raising ImpossibleParsingError, but chunk_text didn't have the same logic. So this PR ports the logic, and expands tests to cover this edge case

@jamesbraza jamesbraza added the bug Something isn't working label Sep 13, 2024
@jamesbraza jamesbraza self-assigned this Sep 13, 2024
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 13, 2024
tests/test_agents.py Outdated Show resolved Hide resolved
paperqa/readers.py Outdated Show resolved Hide resolved
@dosubot dosubot bot added lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Sep 13, 2024
@jamesbraza jamesbraza merged commit 30ec9b0 into main Sep 13, 2024
5 checks passed
@jamesbraza jamesbraza deleted the fixing-div0 branch September 13, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants