From 9dac11cb6b9fcab10dd7551d4ea35eb9b13dc0f5 Mon Sep 17 00:00:00 2001 From: jlloyd-widen <82222659+jlloyd-widen@users.noreply.github.com> Date: Mon, 22 Aug 2022 21:07:13 -0600 Subject: [PATCH] feat: add `ConnectionError` to list of backoff exceptions for auto-retry (#919) added connection error to list of backoff exceptions Co-authored-by: Josh Lloyd --- singer_sdk/streams/rest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/singer_sdk/streams/rest.py b/singer_sdk/streams/rest.py index 34c77de60..456ec5cd8 100644 --- a/singer_sdk/streams/rest.py +++ b/singer_sdk/streams/rest.py @@ -213,6 +213,7 @@ def request_decorator(self, func: Callable) -> Callable: ( RetriableAPIError, requests.exceptions.ReadTimeout, + requests.exceptions.ConnectionError, ), max_tries=self.backoff_max_tries, on_backoff=self.backoff_handler,