Fix for nonetype issues during parsing

This commit is contained in:
echel0n 2014-06-07 04:08:12 -07:00
parent 24dfbc3f15
commit a9f142184a

View file

@ -235,9 +235,9 @@ class NameParser(object):
if len(matches):
result = max(matches, key=lambda x: x.score)
# get quality
if result.show:
result.quality = common.Quality.nameQuality(name, bool(result.show and result.show.is_anime))
# get quality
if result.show:
result.quality = common.Quality.nameQuality(name, bool(result.show and result.show.is_anime))
return result