| Xqt created this task. Xqt added projects: Pywikibot-core, Pywikibot-category.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
C:\pwb\GIT\core>pwb.py category remove -from:Antifaschist -cc NOTE: option cosmetic_changes is False
Retrieving 50 pages from wikipedia:de.
ERROR: Fatal error:
Traceback (most recent call last):
File ".\scripts\category.py", line 1282, in main
bot.run()
File ".\scripts\category.py", line 574, in run
self._change(pagegenerators.CategorizedPageGenerator(self.oldcat))
File ".\scripts\category.py", line 615, in _change
sortKey=self.keep_sortkey)
File "C:\pwb\GIT\core\pywikibot\page.py", line 2073, in change_category
newtext = textlib.replaceCategoryLinks(oldtext, cats)
File "C:\pwb\GIT\core\pywikibot\textlib.py", line 1215, in replaceCategoryLinks
s
'The Pywikibot is no longer allowed to touch categories on the '
Error: The Pywikibot is no longer allowed to touch categories on the German
Wikipedia on pages that contain the Personendaten template because of the
non-standard placement of that template.
See https://de.wikipedia.org/wiki/Hilfe:Personendaten#Kopiervorlage
C:\pwb\GIT\core>First the script should not break but skip that single page
Second is it really necessary to use these affected textlib methods for template removements which breaks the script? A single C:\pwb\GIT\core>pwb.py replace -regex "\[\[Kategorie\:Antifaschist\]\]\r?\n" ""-cat:Antifaschist does the job too. This means category.py should be able always to do the job. In my sample the cosmetic_changes didn't care for replace.py. This is a bit curious.
TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
