We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d7dd4 commit 084c1cfCopy full SHA for 084c1cf
pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
5
[project]
6
name = "recnetpy"
7
-version = "0.2.4"
+version = "0.2.5"
8
authors = [
9
{ name="RecNetBot Development"}
10
]
src/recnetpy/rest/exceptions/rate_limited.py
@@ -12,7 +12,7 @@ class RateLimited(HTTPError):
12
"""
13
14
def __init__(self, resp: 'Response') -> None:
15
- time_out = int(resp.headers.get("retry_after"))
+ time_out = float(resp.headers.get("retry-after"))
16
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