Skip to content

Commit 8eec53b

Browse files
authored
Fix: Set max retries to 1 (#61)
Getting banned by trakt api if doing more than once.
2 parents 752cf4b + 02f49ac commit 8eec53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trakt/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class TokenAuth(AuthBase):
173173
REDIRECT_URI: str = 'urn:ietf:wg:oauth:2.0:oob'
174174

175175
#: How many times to attempt token auth refresh before failing
176-
MAX_RETRIES = 3
176+
MAX_RETRIES = 1
177177

178178
def __init__(self, client: HttpClient, config: AuthConfig):
179179
super().__init__()

0 commit comments

Comments
 (0)