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 1e3f9e4 commit da6dc5bCopy full SHA for da6dc5b
src/unstructured_client/_hooks/custom/split_pdf_hook.py
@@ -669,11 +669,8 @@ def after_success(
669
elements = self._await_elements(operation_id)
670
671
# if fails are disallowed, return the first failed response
672
- # Note(austin): Stick a 500 status code in here so the SDK
673
- # does not trigger its own retry logic
674
if not self.allow_failed and self.api_failed_responses.get(operation_id):
675
failure_response = self.api_failed_responses[operation_id][0]
676
- failure_response.status_code = 500
677
678
self._clear_operation(operation_id)
679
return failure_response
0 commit comments