jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/362184 )
Change subject: [DOC] Fix missleading comment for UserBlocked
......................................................................
[DOC] Fix missleading comment for UserBlocked
Change-Id: Iefea1ad27bf2eb691d3e1636a3323548833e5491
---
M pywikibot/exceptions.py
1 file changed, 4 insertions(+), 5 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 921ce86..aa249c7 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -77,7 +77,7 @@
- FamilyMaintenanceWarning: missing information in family definition
"""
#
-# (C) Pywikibot team, 2008-2015
+# (C) Pywikibot team, 2008-2017
#
# Distributed under the terms of the MIT license.
#
@@ -480,13 +480,12 @@
"""Server responded with BadTitle."""
-# UserBlocked exceptions should in general not be caught. If the bot has
-# been blocked, the bot operator should address the reason for the block
-# before continuing.
-
pass
+# UserBlocked exceptions should in general not be caught. If the bot has
+# been blocked, the bot operator should address the reason for the block
+# before continuing.
class UserBlocked(Error): # noqa
"""Your username or IP has been blocked"""
--
To view, visit
https://gerrit.wikimedia.org/r/362184
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iefea1ad27bf2eb691d3e1636a3323548833e5491
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>