Skip to content

Commit 63f4223

Browse files
committed
prevent errors due to non-conforming tvdb api response
1 parent 92e8c7c commit 63f4223

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tvdb_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,11 @@ def _parseActors(self, sid):
10281028
data from the XML)
10291029
"""
10301030
LOG.debug("Getting actors for %s" % (sid))
1031-
actors_resp = self._getetsrc(self.config['url_actorsInfo'] % (sid))
1031+
try:
1032+
actors_resp = self._getetsrc(self.config['url_actorsInfo'] % (sid))
1033+
except tvdb_error:
1034+
actors_resp = []
1035+
10321036

10331037
cur_actors = Actors()
10341038
for cur_actor_item in actors_resp:

0 commit comments

Comments
 (0)