Catch also Plex BadRequest
from functools import wraps
from time import sleep
+from plexapi.exceptions import BadRequest
from requests import RequestException
from trakt.errors import (LockedUserAccountException, RateLimitException,
TraktInternalException)
@@ -23,6 +24,7 @@ def wrapper(*args, **kwargs):
try:
return fn(*args, **kwargs)
except (
+ BadRequest,
RateLimitException,
RequestException,
TraktInternalException,
