Skip to content

Commit

Permalink
prevent errors due to non-conforming tvdb api response
Browse files Browse the repository at this point in the history
  • Loading branch information
mueslo committed Oct 16, 2020
1 parent 92e8c7c commit 63f4223
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tvdb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,11 @@ def _parseActors(self, sid):
data from the XML)
"""
LOG.debug("Getting actors for %s" % (sid))
actors_resp = self._getetsrc(self.config['url_actorsInfo'] % (sid))
try:
actors_resp = self._getetsrc(self.config['url_actorsInfo'] % (sid))
except tvdb_error:
actors_resp = []


cur_actors = Actors()
for cur_actor_item in actors_resp:
Expand Down

0 comments on commit 63f4223

Please sign in to comment.