[70] fix NoneType Error

pull/858/head
meisnate12 3 years ago
parent ae81713579
commit 02aa513551

@ -1 +1 @@
1.16.5-develop69
1.16.5-develop70

@ -124,7 +124,7 @@ class TMDbMovie(TMDBObj):
try:
return self._tmdb.TMDb.movie(self.tmdb_id, partial="external_ids,keywords")
except NotFound:
Failed(f"TMDb Error: No Movie found for TMDb ID {self.tmdb_id}")
raise Failed(f"TMDb Error: No Movie found for TMDb ID {self.tmdb_id}")
class TMDbShow(TMDBObj):
@ -158,7 +158,7 @@ class TMDbShow(TMDBObj):
try:
return self._tmdb.TMDb.tv_show(self.tmdb_id, partial="external_ids,keywords")
except NotFound:
Failed(f"TMDb Error: No Show found for TMDb ID {self.tmdb_id}")
raise Failed(f"TMDb Error: No Show found for TMDb ID {self.tmdb_id}")
class TMDb:
def __init__(self, config, params):

Loading…
Cancel
Save