Commit 576ecd1
authored
Fix 4XX errors incorrectly categorized as 5XX in PDF splitting (#290)
All of the retry configs look like these:
-
[general.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/general.py#L217-L218):
`retry_config = (retries, ["5xx"])`
-
[destinations.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/destinations.py#L182-L183):
`retry_config = (retries, ["5xx"])`
-
[sources.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/sources.py#L183-L184):
`retry_config = (retries, ["5xx"])`
-
[workflows.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/workflows.py#L75-76):
`retry_config = (retries, ["5xx"])`
-
[jobs.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/jobs.py#L175-L176):
`retry_config = (retries, ["5xx"])`
-
[users.py](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/users.py#L236-L236):
`retry_config = (retries, ["5xx"])`
This doesn't include all, but I do not see any cases where we would be
retrying on a 4XX.1 parent 1736ada commit 576ecd1
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | 672 | | |
675 | 673 | | |
676 | | - | |
677 | 674 | | |
678 | 675 | | |
679 | 676 | | |
| |||
0 commit comments