Skip to content

Commit

Permalink
bug fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Dec 11, 2024
1 parent ed013be commit 900e986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_service_titan/streams/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 900e986

Please sign in to comment.