Skip items on ConnectionError
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
from plexapi.exceptions import NotFound
+from requests.exceptions import ConnectionError
from trakt.errors import TraktException
from plex_trakt_sync.logging import logger
@@ -117,7 +118,7 @@ def resolve(self, pm: PlexLibraryItem, tm=None):
tm = self.trakt.find_episode(tm, pm)
else:
tm = self.trakt.find_by_media(pm)
- except TraktException as e:
+ except (TraktException, ConnectionError) as e:
logger.warning(f"Skipping {pm}: Trakt errors: {e}")
return None

Skip items on ConnectionError