mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
bugfix in tv.py
This commit is contained in:
parent
264f852a97
commit
ff548a7f6b
1 changed files with 5 additions and 5 deletions
|
@ -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', '')
|
||||
|
|
Loading…
Reference in a new issue