Catch also ReadTimeout
MODIFY
plex_trakt_sync/decorators/rate_limit.py
plex_trakt_sync/decorators/rate_limit.py
from functools import wraps
from time import sleep
+from requests import ReadTimeout
from requests.exceptions import ConnectionError
from trakt.errors import RateLimitException, TraktInternalException
from plex_trakt_sync.logging import logger
@@ -20,7 +21,7 @@ def wrapper(*args, **kwargs):
while True:
try:
return fn(*args, **kwargs)
- except (RateLimitException, ConnectionError, TraktInternalException) as e:
+ except (RateLimitException, ConnectionError, ReadTimeout, TraktInternalException) as e:
if retry == retries:
raise e

Catch also ReadTimeout