mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-14 03:52:22 -05:00
Fixed NoneType error when mapping indexers to show
This commit is contained in:
parent
3592e559d0
commit
c658fe0f26
@ -1179,9 +1179,9 @@ def mapIndexersToShow(showObj):
|
|||||||
except sickbeard.indexer_shownotfound:
|
except sickbeard.indexer_shownotfound:
|
||||||
logger.log(u"Unable to map " + sickbeard.indexerApi(showObj.indexer).name + "->" + sickbeard.indexerApi(
|
logger.log(u"Unable to map " + sickbeard.indexerApi(showObj.indexer).name + "->" + sickbeard.indexerApi(
|
||||||
indexer).name + " for show: " + showObj.name + ", skipping it", logger.DEBUG)
|
indexer).name + " for show: " + showObj.name + ", skipping it", logger.DEBUG)
|
||||||
mapped_show = None
|
continue
|
||||||
|
|
||||||
if len(mapped_show) and not len(mapped_show) > 1:
|
if mapped_show and len(mapped_show) == 1:
|
||||||
logger.log(u"Mapping " + sickbeard.indexerApi(showObj.indexer).name + "->" + sickbeard.indexerApi(
|
logger.log(u"Mapping " + sickbeard.indexerApi(showObj.indexer).name + "->" + sickbeard.indexerApi(
|
||||||
indexer).name + " for show: " + showObj.name, logger.DEBUG)
|
indexer).name + " for show: " + showObj.name, logger.DEBUG)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user