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 1736ada commit 576ecd1Copy full SHA for 576ecd1
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