Skip to content

Commit 5dd32b7

Browse files
authored
Change retry condition to catch all exceptions
1 parent c550a6d commit 5dd32b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_task_general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def snow_instance_entry(request):
3434

3535
@retry(
3636
stop=stop_after_attempt(5),
37-
retry=retry_if_exception_type(TimeoutError),
37+
retry=retry_if_exception_type(Exception),
3838
reraise=True,
39-
before_sleep=lambda _: logging.info("Retrying due to a TimeoutError..."),
39+
before_sleep=lambda _: logging.info("Retrying due to an exception..."),
4040
)
4141
@pytest.mark.parametrize("task_entrypoint", ATOMIC_TASKS)
4242
@pytest.mark.parametrize("random_seed", range(1))

0 commit comments

Comments
 (0)