From e38cc98d8700b19ff0b1aaa0069b6dc312464a5c Mon Sep 17 00:00:00 2001 From: mueslo Date: Sat, 6 Jun 2020 03:12:54 +0200 Subject: [PATCH] prevent errors due to non-conforming tvdb api response also, fuck `black` --- tvdb_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tvdb_api.py b/tvdb_api.py index 3072c3e..38919c3 100644 --- a/tvdb_api.py +++ b/tvdb_api.py @@ -1028,7 +1028,10 @@ 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: