From 900e986f7774e950cd370df7bc969a31a72fc65b Mon Sep 17 00:00:00 2001 From: Pat Nadolny Date: Wed, 11 Dec 2024 11:00:10 -0500 Subject: [PATCH] bug fix type error --- tap_service_titan/streams/reporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_service_titan/streams/reporting.py b/tap_service_titan/streams/reporting.py index 84ebd5d..135cb5b 100644 --- a/tap_service_titan/streams/reporting.py +++ b/tap_service_titan/streams/reporting.py @@ -238,6 +238,6 @@ def backoff_wait_generator(self) -> t.Callable[..., t.Generator[int, t.Any, None def _backoff_from_headers(retriable_api_error) -> int: # noqa: ANN001 response_headers = retriable_api_error.response.headers - return int(math.ceil(response_headers.get("Retry-After", 0))) + return int(math.ceil(float(response_headers.get("Retry-After", 0)))) return self.backoff_runtime(value=_backoff_from_headers)