1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

bugfix in tv.py

This commit is contained in:
echel0n 2014-03-11 12:39:25 -07:00
parent 264f852a97
commit ff548a7f6b

View File

@ -716,11 +716,11 @@ class TVShow(object):
myEp = t[self.indexerid] myEp = t[self.indexerid]
if getattr(myEp, 'seriesname', None) is not None: try:
self.name = myEp["seriesname"].strip() if getattr(myEp, 'seriesname', None) is not None:
else: self.name = myEp['seriesname'].strip()
raise indexer_exceptions.indexer_attributenotfound\ except AttributeError:
("Found %s, but attribute 'seriesname' was empty." % (self.indexerid)) raise indexer_exceptions.indexer_attributenotfound("Found %s, but attribute 'seriesname' was empty." % (self.indexerid))
self.classification = getattr(myEp, 'classification', 'Scripted') self.classification = getattr(myEp, 'classification', 'Scripted')
self.genre = getattr(myEp, 'genre', '') self.genre = getattr(myEp, 'genre', '')