Catch TraktUnavailable in retry
MODIFY
plextraktsync/decorators/retry.py
plextraktsync/decorators/retry.py
from plexapi.exceptions import BadRequest
from requests import ReadTimeout, RequestException
from trakt.errors import (BadResponseException, TraktBadGateway,
- TraktInternalException)
+ TraktInternalException, TraktUnavailable)
from plextraktsync.factory import logger
@@ -30,6 +30,7 @@ def wrapper(*args, **kwargs):
ReadTimeout,
RequestException,
TraktBadGateway,
+ TraktUnavailable,
TraktInternalException,
) as e:
if count == retries:

Catch TraktUnavailable in retry