Include original error into ValueError
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -192,7 +192,7 @@ def find_movie(self, media: PlexLibraryItem):
raise ValueError(f"Unable parse search result for {media.provider}/{media.id}: {e.doc!r}") from e
except ValueError as e:
# Search_type must be one of ('trakt', ..., 'imdb', 'tmdb', 'tvdb')
- raise ValueError(f"Invalid id_type: '{media.provider}', guid: '{media.guid}'") from e
+ raise ValueError(f"Invalid id_type: '{media.provider}', guid: '{media.guid}': {e}") from e
# look for the first wanted type in the results
for m in search:
if m.media_type == media.type:

Include original error into ValueError