jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[IMPR] remove previous error traceback when raising Error in authorship()

Change-Id: Ib9d4ba89932c2cfc831c63b33230057d4dd9f179
---
M pywikibot/page/_toolforge.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pywikibot/page/_toolforge.py b/pywikibot/page/_toolforge.py
index 3342040..64152b1 100644
--- a/pywikibot/page/_toolforge.py
+++ b/pywikibot/page/_toolforge.py
@@ -194,8 +194,8 @@
table = wikitextparser.parse(r.text).tables[0]
except IndexError:
pattern = textlib.get_regexes('code')[0]
- msg = pattern.search(r.text)[0]
- raise pywikibot.exceptions.Error(textlib.removeHTMLParts(msg))
+ msg = textlib.removeHTMLParts(pattern.search(r.text)[0])
+ raise pywikibot.exceptions.Error(msg) from None

pct_sum = 0.0
for row in table.data():

To view, visit change 1054020. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib9d4ba89932c2cfc831c63b33230057d4dd9f179
Gerrit-Change-Number: 1054020
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot