You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an error happens during parsing, an error message: "Document "{document.name}" not added to database, because of parse error" appears, but the Document object itself is added to database before the parser error happens.
I think this is a regression caused by b1b8d24, where doc: Document is saved to the database by session.merge(doc, load=True), so this could happen on v0.8.0, v0.8.1, v0.8.2 too.
The text was updated successfully, but these errors were encountered:
HiromuHota
pushed a commit
to HiromuHota/fonduer
that referenced
this issue
Jul 30, 2020
Description of the bug
When an error happens during parsing, an error message: "Document "{document.name}" not added to database, because of parse error" appears, but the
Document
object itself is added to database before the parser error happens.To Reproduce
Steps to reproduce the behavior:
session.query(Document).count()
to see how manyDocuments
are added to the database.Expected behavior
Either one of these behaviors
Document
is not added.Error Logs/Screenshots
"Document "{document.name}" not added to database, because of parse error"
Environment (please complete the following information)
Additional context
Add any other context about the problem here.
I think this is a regression caused by b1b8d24, where
doc: Document
is saved to the database bysession.merge(doc, load=True)
, so this could happen on v0.8.0, v0.8.1, v0.8.2 too.The text was updated successfully, but these errors were encountered: