jenkins-bot has submitted this change and it was merged.
Change subject: Clear exceptions in BaseBot.run before processing
......................................................................
Clear exceptions in BaseBot.run before processing
Bot classes use sys.exc_info, which can be a stale exception
under Python 2.
Bug: T136487
Change-Id: I01311cf9071ab45cb38bc5463153e887a76c5138
---
M pywikibot/bot.py
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 7dbb8ef..378f2b2 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1414,6 +1414,10 @@
if PY2:
maxint = sys.maxint
+ # Python 2 does not clear previous exceptions and method `exit`
+ # relies on sys.exc_info returning exceptions occurring in `run`.
+ sys.exc_clear()
+
try:
for page in self.generator:
try:
--
To view, visit https://gerrit.wikimedia.org/r/291523
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I01311cf9071ab45cb38bc5463153e887a76c5138
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Fix ID for Rhea
......................................................................
Fix ID for Rhea
Q108419 is the wrong Rhea - this is the female Titan,
Q15050 is the moon of Saturn
Change-Id: I1d15e017e1216c8c25af199da01d70be4c13478a
(cherry picked from commit 21570f1f25b2a390ee32b804b85971fa04cc0001)
---
M pywikibot/families/wikidata_family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Smalyshev: Looks good to me, but someone else must approve
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py
index 181c4c4..4340f3a 100644
--- a/pywikibot/families/wikidata_family.py
+++ b/pywikibot/families/wikidata_family.py
@@ -71,7 +71,7 @@
'phobos': 'http://www.wikidata.org/entity/Q7547',
'phoebe': 'http://www.wikidata.org/entity/Q17975',
'pluto': 'http://www.wikidata.org/entity/Q339',
- 'rhea': 'http://www.wikidata.org/entity/Q108419',
+ 'rhea': 'http://www.wikidata.org/entity/Q15050',
'tethys': 'http://www.wikidata.org/entity/Q15047',
'titan': 'http://www.wikidata.org/entity/Q2565',
'titania': 'http://www.wikidata.org/entity/Q3322',
--
To view, visit https://gerrit.wikimedia.org/r/290926
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d15e017e1216c8c25af199da01d70be4c13478a
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Smalyshev <smalyshev(a)wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>