jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/709239 )
Change subject: [IMPR] handle missingtitle error code when deleting
......................................................................
[IMPR] handle missingtitle error code when deleting
Change-Id: Ie041daf507d2e3600133622d4726176a31cd9b50
---
M pywikibot/site/_apisite.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 33ada84..17ac882 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -2048,7 +2048,8 @@
'Could not delete [[{title}]]. Maybe it was deleted already.',
'cantundelete': 'Could not undelete [[{title}]]. '
'Revision may not exist or was already undeleted.',
- 'nodeleteablefile': 'No such old version of file'
+ 'nodeleteablefile': 'No such old version of file',
+ 'missingtitle': "[[{title}]] doesn't exist.",
} # other errors shouldn't occur because of pre-submission checks
@need_right('delete')
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/709239
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie041daf507d2e3600133622d4726176a31cd9b50
Gerrit-Change-Number: 709239
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged