From 59ed78b754800a1a9c07c12ef4fc28e763cb7cc4 Mon Sep 17 00:00:00 2001 From: mkolasinski-splunk <105011638+mkolasinski-splunk@users.noreply.github.com> Date: Thu, 5 Oct 2023 08:11:25 +0200 Subject: [PATCH] fix: extend max retries for submitting package (#17) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d56ceec..4aa75d6 100644 --- a/main.py +++ b/main.py @@ -162,7 +162,7 @@ def _validate_validation_status(response: requests.Response) -> bool: "Authorization": f"bearer {token}", }, rand=lambda: seconds_to_wait, - num_retries=20, + num_retries=25, validation_function=_validate_validation_status, ) except CouldNotAuthenticateException: