jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/585881 )
Change subject: [cleanup] Desupport SkipPageError with BaseBot ......................................................................
[cleanup] Desupport SkipPageError with BaseBot
Throw a FutureWarning when SkipPageError is used for a BaseBot that this deprecated skipping method can be removed shortly.
Change-Id: I9c43e7f16b94d7ec904484ecf8b108b735bffbba --- M pywikibot/bot.py 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 74427fd..a2b65ca 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -1405,6 +1405,7 @@ except SkipPageError as e: issue_deprecation_warning('Use of SkipPageError', 'BaseBot.skip_page() method', + warning_class=FutureWarning, since='20180522') pywikibot.warning('Skipped "{0}" due to: {1}'.format( item, e.reason))
pywikibot-commits@lists.wikimedia.org