We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2540d4 commit 14ed130Copy full SHA for 14ed130
hcloud/_client.py
@@ -83,8 +83,8 @@ class Client:
83
_version = __version__
84
__user_agent_prefix = "hcloud-python"
85
86
- _retry_interval = exponential_backoff_function(
87
- base=1.0, multiplier=2, cap=60.0, jitter=True
+ _retry_interval = staticmethod(
+ exponential_backoff_function(base=1.0, multiplier=2, cap=60.0, jitter=True)
88
)
89
_retry_max_retries = 5
90
@@ -291,7 +291,6 @@ def request( # type: ignore[no-untyped-def]
291
error["code"] == "rate_limit_exceeded"
292
and retries < self._retry_max_retries
293
):
294
- # pylint: disable=too-many-function-args
295
time.sleep(self._retry_interval(retries))
296
retries += 1
297
continue
0 commit comments