Skip to content

Commit 0b30b41

Browse files
committed
feat NEXUS-817: manually added 5xx to general.py which is temporarily not generated
1 parent 043890f commit 0b30b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unstructured_client/general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def partition(
9393

9494
retry_config = None
9595
if isinstance(retries, utils.RetryConfig):
96-
retry_config = (retries, ["502", "503", "504"])
96+
retry_config = (retries, ["5xx"])
9797

9898
http_res = self.do_request(
9999
hook_ctx=HookContext(
@@ -225,7 +225,7 @@ async def partition_async(
225225

226226
retry_config = None
227227
if isinstance(retries, utils.RetryConfig):
228-
retry_config = (retries, ["502", "503", "504"])
228+
retry_config = (retries, ["5xx"])
229229

230230
http_res = await self.do_request_async(
231231
hook_ctx=HookContext(

0 commit comments

Comments
 (0)