We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2212d2e commit 482a658Copy full SHA for 482a658
lib/idp_common_pkg/idp_common/classification/service.py
@@ -940,11 +940,12 @@ def classify_document(self, document: Document) -> Document:
940
logger.error(error_msg)
941
with errors_lock:
942
document.errors.append(error_msg)
943
-
944
# Mark page as unclassified on error
945
if page_id in document.pages:
946
document.pages[page_id].classification = "unclassified"
947
document.pages[page_id].confidence = 0.0
+ # raise exception to enable client retries
948
+ raise
949
950
# Group pages into sections only if we have results
951
document.sections = []
0 commit comments