Fix display of disabled reasons.

This commit is contained in:
Tobias Gruetzmacher 2015-07-21 23:52:38 +02:00
parent 303432fc68
commit fa9271b970

2
dosage
View file

@ -299,7 +299,7 @@ def getTaggedScraperName(scraperobj, limit=None, reasons=None):
if scraperobj.lang != "en":
tags.append("%s:%s" % (TAG_LANG, scraperobj.lang))
disabled = scraperobj.getDisabledReasons()
if disabled and reasons:
if disabled and reasons is not None:
reasons.update(disabled)
for reason in disabled:
tags.append("%s:%s" % (TAG_DISABLED, reason))