[Pywikipedia-l] SVN: [4732] trunk/pywikipedia/wikipedia.py

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Tue Dec 18 17:46:54 UTC 2007


Revision: 4732
Author:   rotem
Date:     2007-12-18 17:46:49 +0000 (Tue, 18 Dec 2007)

Log Message:
-----------
Help the debugging.

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2007-12-18 17:43:58 UTC (rev 4731)
+++ trunk/pywikipedia/wikipedia.py	2007-12-18 17:46:49 UTC (rev 4732)
@@ -5347,7 +5347,7 @@
             text = unicode(text, decoder)
         elif type(text) is not unicode:
             if verbose:
-                print "DBG> BUG: Non-unicode passed to wikipedia.output without decoder!"
+                print "DBG> BUG: Non-unicode (%s) passed to wikipedia.output without decoder!" % type(text)
                 print traceback.print_stack()
                 print "DBG> Attempting to recover, but please report this problem"
             try:





More information about the Pywikipedia-l mailing list