Skip to content

unhandled assert in query_text#102

Open
boyanpenkov wants to merge 3 commits intoperrette:masterfrom
boyanpenkov:unhandled_assert
Open

unhandled assert in query_text#102
boyanpenkov wants to merge 3 commits intoperrette:masterfrom
boyanpenkov:unhandled_assert

Conversation

@boyanpenkov
Copy link
Contributor

@boyanpenkov boyanpenkov commented Mar 17, 2026

If query_text() fails on the assert (because, say, the pdf ocr fails), we crash; this patch returns this as a ValueError or the previously chosen default, which we can then handle.

This is one of the things that -- if we crash at the wrong time -- leaves the caches corrupted; this became evident when trying to run querys concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant