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

Retry TraktBadGateway exceptions