Skip to content

Commit 084c1cf

Browse files
committed
Fixed fr this time.
1 parent a3d7dd4 commit 084c1cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "recnetpy"
7-
version = "0.2.4"
7+
version = "0.2.5"
88
authors = [
99
{ name="RecNetBot Development"}
1010
]

src/recnetpy/rest/exceptions/rate_limited.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RateLimited(HTTPError):
1212
"""
1313

1414
def __init__(self, resp: 'Response') -> None:
15-
time_out = int(resp.headers.get("retry_after"))
15+
time_out = float(resp.headers.get("retry-after"))
1616
t = timedelta(seconds=time_out)
1717
message = f"You're currently being rate limited. Time out expires in {t} seconds."
1818
super().__init__(resp, message)

0 commit comments

Comments
 (0)