Skip to content

Commit 9987e83

Browse files
Raise the exception from the API error after retry in tests (#576)
1 parent de7cde1 commit 9987e83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def retry_sending_request(
3131
for attempt in range(1, retries + 1):
3232
try:
3333
return condition(*args, **kwargs)
34-
except ApiError:
34+
except ApiError as e:
3535
if attempt == retries:
36-
raise ApiError(
36+
raise Exception(
3737
"Api Error: Failed after all retry attempts"
38-
) from None
38+
) from e
3939
time.sleep(backoff)
4040

4141

0 commit comments

Comments
 (0)