diff --git a/src/unstructured_client/_hooks/custom/split_pdf_hook.py b/src/unstructured_client/_hooks/custom/split_pdf_hook.py index 724a544b..eb4ae5a5 100644 --- a/src/unstructured_client/_hooks/custom/split_pdf_hook.py +++ b/src/unstructured_client/_hooks/custom/split_pdf_hook.py @@ -669,11 +669,8 @@ def after_success( elements = self._await_elements(operation_id) # if fails are disallowed, return the first failed response - # Note(austin): Stick a 500 status code in here so the SDK - # does not trigger its own retry logic if not self.allow_failed and self.api_failed_responses.get(operation_id): failure_response = self.api_failed_responses[operation_id][0] - failure_response.status_code = 500 self._clear_operation(operation_id) return failure_response