1
0
mirror of https://github.com/moparisthebest/SickRage synced 2025-01-07 11:58:01 -05:00

Bugfix for NoneType error when looking for genres on TVRage

This commit is contained in:
echel0n 2014-03-10 18:23:49 -07:00
parent 1cb293f3d6
commit 88640b4af6

View File

@ -596,9 +596,9 @@ class TVRage:
self._setShowData(sid, tag, value)
try:
# Parse genre data
log().debug('Getting genres of %s' % (sid))
for genre in seriesInfoEt.find('genres'):
if genre.tag in remap_keys:
tag = remap_keys[genre.tag.lower()]
@ -610,6 +610,8 @@ class TVRage:
value = self._cleanData(value)
self._setShowData(sid, tag, value)
except Exception:
log().debug('No genres for %s' % (sid))
# Parse episode data
log().debug('Getting all episodes of %s' % (sid))