Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/78661
Change subject: replace print statement with pywikibot.output() which prevents
some unicode encoding errors while printing.
......................................................................
replace print statement with pywikibot.output() which prevents some unicode
encoding errors while printing.
Change-Id: Ie70ff75088917fd8c2a08e3d3f3e4a25393f404d
---
M userlib.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat
refs/changes/61/78661/1
diff --git a/userlib.py b/userlib.py
index 21e7c74..2a9d988 100644
--- a/userlib.py
+++ b/userlib.py
@@ -642,7 +642,7 @@
data = self.getData()
except Exception, e:
# Print the traceback of the caught exception
- print e
+ pywikibot.output(e)
raise
else:
break
--
To view, visit https://gerrit.wikimedia.org/r/78661
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie70ff75088917fd8c2a08e3d3f3e4a25393f404d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits