Skip to content

Commit e38cc98

Browse files
committed
prevent errors due to non-conforming tvdb api response
also, fuck `black`
1 parent 92e8c7c commit e38cc98

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tvdb_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,10 @@ 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 = []
10321035

10331036
cur_actors = Actors()
10341037
for cur_actor_item in actors_resp:

0 commit comments

Comments
 (0)