Skip to content

Commit 38a76b9

Browse files
committed
Lint
1 parent 299b4d4 commit 38a76b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

temporalio/contrib/openai_agents/_invoke_model_activity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ def make_tool(tool: ToolInput) -> Tool:
248248
) from e
249249

250250
# Specifically retryable status codes
251-
if e.response.status_code in [408, 409, 429] or e.response.status_code >= 500:
251+
if (
252+
e.response.status_code in [408, 409, 429]
253+
or e.response.status_code >= 500
254+
):
252255
raise ApplicationError(
253256
f"Retryable OpenAI status code: {e.response.status_code}",
254257
non_retryable=False,

0 commit comments

Comments
 (0)