We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6dfe0 commit 3b4bfe6Copy full SHA for 3b4bfe6
src/recnetpy/rest/exceptions/rate_limited.py
@@ -13,6 +13,6 @@ class RateLimited(HTTPError):
13
14
def __init__(self, resp: 'Response') -> None:
15
time_out = resp.headers.get("retry_after")
16
- t = timedelta(time_out)
+ t = timedelta(seconds=time_out)
17
message = f"You're currently being rate limited. Time out expires in {t} seconds."
18
super().__init__(resp, message)
0 commit comments