Skip to content

Commit

Permalink
fix TMDb Not Found Error
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Feb 23, 2023
1 parent bc328af commit f4379d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.8
0.9.9
5 changes: 4 additions & 1 deletion pmm_overlay_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ def reload(plex_item):
except TMDbException as e:
logger.error(e, group=title)
if tmdb_id:
tmdb_item = tmdbapi.movie(tmdb_id) if isinstance(item, Movie) else tmdbapi.tv_show(tmdb_id)
try:
tmdb_item = tmdbapi.movie(tmdb_id) if isinstance(item, Movie) else tmdbapi.tv_show(tmdb_id)
except TMDbException as e:
logger.error(f"TMDb Error: {e}", group=title)
else:
logger.error("Plex Error: TMDb ID Not Found", group=title)

Expand Down

0 comments on commit f4379d6

Please sign in to comment.