jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/399555 )
Change subject: replaceCategoryLinks: prevent failing on dewiki with {{Personendaten}} ......................................................................
replaceCategoryLinks: prevent failing on dewiki with {{Personendaten}}
The script involving replaceCategoryLinks should not break but instead should skip the page on German Wikipedia with {{Personendaten}} template
Bug: T151541 Change-Id: I7033d6ab781fcadc7bf1a77a1b51f313b1c62092 --- M pywikibot/textlib.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index ebb72a9..cedb30d 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -1227,11 +1227,12 @@ if site is None: site = pywikibot.Site() if site.sitename == 'wikipedia:de' and '{{Personendaten' in oldtext: - raise pywikibot.Error( + pywikibot.error( 'The Pywikibot is no longer allowed to touch categories on the ' 'German\nWikipedia on pages that contain the Personendaten ' 'template because of the\nnon-standard placement of that template.\n' 'See https://de.wikipedia.org/wiki/Hilfe:Personendaten#Kopiervorlage') + return oldtext separator = site.family.category_text_separator iseparator = site.family.interwiki_text_separator separatorstripped = separator.strip()