jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676607 )
Change subject: [cleanup] Remove BadTitle exception ......................................................................
[cleanup] Remove BadTitle exception
BadTitle is never raised in raised in core and was already removed from scripts
Bug: T267768 Change-Id: Ice8ce153db396a18825964a226a006259f6675c3 --- M pywikibot/__init__.py M pywikibot/exceptions.py 2 files changed, 2 insertions(+), 10 deletions(-)
Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index e2a4292..4948bf2 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -35,7 +35,7 @@ from pywikibot.data.api import UploadWarning from pywikibot.diff import PatchManager from pywikibot.exceptions import ( - BadTitle, CaptchaError, CascadeLockedPage, CircularRedirect, + CaptchaError, CascadeLockedPage, CircularRedirect, CoordinateGlobeUnknownException, EditConflict, Error, FatalServerError, InterwikiRedirectPage, InvalidTitle, IsNotRedirectPage, IsRedirectPage, LockedNoPage, LockedPage, NoCreateError, NoMoveTarget, NoPage, NoSuchSite, @@ -66,7 +66,7 @@ '__copyright__', '__description__', '__download_url__', '__license__', '__maintainer__', '__maintainer_email__', '__name__', '__url__', '__version__', - 'BadTitle', 'Bot', 'calledModuleName', 'CaptchaError', 'CascadeLockedPage', + 'Bot', 'calledModuleName', 'CaptchaError', 'CascadeLockedPage', 'Category', 'CircularRedirect', 'Claim', 'config', 'Coordinate', 'CoordinateGlobeUnknownException', 'critical', 'CurrentPageBot', 'debug', 'EditConflict', 'error', 'Error', 'exception', 'FatalServerError', diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py index 7a02c42..2a57ecc 100644 --- a/pywikibot/exceptions.py +++ b/pywikibot/exceptions.py @@ -6,7 +6,6 @@ - NoUsername: Username is not in user-config.py, or it is invalid. - AutoblockUser: requested action on a virtual autoblock user not valid - UserRightsError: insufficient rights for requested action - - BadTitle: Server responded with BadTitle - InvalidTitle: Invalid page title - CaptchaError: Captcha is asked and config.solve_captcha == False - Server504Error: Server timed out with HTTP 504 code @@ -460,13 +459,6 @@ pass
-class BadTitle(Error): - - """Server responded with BadTitle.""" - - pass - - class CaptchaError(Error):
"""Captcha is asked and config.solve_captcha == False."""
pywikibot-commits@lists.wikimedia.org