Mh-3110 added a comment.
@Nicolas_NALLET , thanks. What I want to point out here is that, as no page
is supposed to contains such forbidden characters, we will process the same way
as if page does not exist. Same thing in case page has been deleted after
script was launched.
Fix will look like this:
if not targetpage.exists():
pywikibot.output(
'Page {0} doesn\'t exist'.format(
page.title(as_link=True)
)
)
continue
cc @Dvorapa
TASK DETAIL
https://phabricator.wikimedia.org/T223816
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mh-3110
Cc: Mh-3110, Aklapper, Liuxinyu970226, Framawiki, Xqt, Dvorapa,
pywikibot-bugs-list, Nicolas_NALLET, Viztor, DannyS712, Wenyi, Kieubinhtb,
Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, JakeTheDeveloper, Tbscho,
MayS, Mdupont, JJMC89, D3r1ck01, Avicennasis, MuhammadShuaib, Tmalhotra,
SimmeD, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs