Skip to content

Commit

Permalink
Add doc and default value to account_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 31, 2025
1 parent ad3704e commit 17b3e9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trakt/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ class AccountLimitExceeded(RateLimitException):

@property
def account_limit(self):
return self.response.headers.get("x-account-limit")
"""Get the account limit details from response headers.
Returns:
str|None: The value of x-account-limit header or None if not present
"""
return self.response.headers.get("x-account-limit", None)


class TraktInternalException(TraktException):
Expand Down

0 comments on commit 17b3e9c

Please sign in to comment.