jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Ie70ff75088917fd8c2a08e3d3f3e4a25393f404d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to