From ff548a7f6bdf655fd55740bf740b24c26f805ee3 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 11 Mar 2014 12:39:25 -0700 Subject: [PATCH] bugfix in tv.py --- sickbeard/tv.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 520da6f3..2032bda6 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -716,11 +716,11 @@ class TVShow(object): myEp = t[self.indexerid] - if getattr(myEp, 'seriesname', None) is not None: - self.name = myEp["seriesname"].strip() - else: - raise indexer_exceptions.indexer_attributenotfound\ - ("Found %s, but attribute 'seriesname' was empty." % (self.indexerid)) + try: + if getattr(myEp, 'seriesname', None) is not None: + self.name = myEp['seriesname'].strip() + except AttributeError: + raise indexer_exceptions.indexer_attributenotfound("Found %s, but attribute 'seriesname' was empty." % (self.indexerid)) self.classification = getattr(myEp, 'classification', 'Scripted') self.genre = getattr(myEp, 'genre', '')