Skip to content

Commit 3b4bfe6

Browse files
committed
Fix timedelta error.
1 parent 2e6dfe0 commit 3b4bfe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recnetpy/rest/exceptions/rate_limited.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class RateLimited(HTTPError):
1313

1414
def __init__(self, resp: 'Response') -> None:
1515
time_out = resp.headers.get("retry_after")
16-
t = timedelta(time_out)
16+
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)