| Chicocvenancio created this task. Chicocvenancio added a project: Pywikibot-category.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
Using CategoryAddBot from PAWS in Portuguese Wikipedia resulted in the removal of all non-affected categories the example edit can be seen here.
Investigating this a bit, it seems to me the problem is in the call to textlib.getCategoryLinks without a site in line 365. Without knowing what site it is, it seems textlib only accepts categories in the english form category:, while it finds categories from categoria: just fine as soon as it understands it is dealing with text from the Portuguese Wikipedia.
I'll will soon submit a patch with a proposed change that seems to fix it.
TASK DETAIL
EMAIL PREFERENCES
To: Chicocvenancio
Cc: Aklapper, Chicocvenancio, pywikibot-bugs-list
Cc: Aklapper, Chicocvenancio, pywikibot-bugs-list
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
