Use e.retry_after property
MODIFY
plextraktsync/decorators/rate_limit.py
plextraktsync/decorators/rate_limit.py
@@ -32,7 +32,7 @@ def wrapper(*args, **kwargs):
exit(1)
if isinstance(e, RateLimitException):
- seconds = int(e.response.headers.get("Retry-After", 1))
+ seconds = e.retry_after
else:
seconds = 1 + retry
retry += 1

Use e.retry_after property