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')
pywikibot-commits@lists.wikimedia.org