-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello all!
I got this error (from trunk):
Traceback (most recent call last): File "../pywikipedia/subster.py", line 251, in subContent (substed_content, tags) = self.subTemplate(substed_content, item) File "../pywikipedia/subster.py", line 345, in subTemplate external_buffer = http.request(self.site, param['url'], no_hostname = True) File "../pywikipedia/pywikibot/comms/http.py", line 125, in request pywikibot.output(u'%s' %e) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 42: ordinal not in range(128)
and was able to trace the code line 125 (http.py): pywikibot.output(u'%s' %e)
back to "revision 7591 by alexsh, Wed Nov 4 13:22:17 2009 UTC" line 5508, please confer [1]. Now this code snipplet is quite old and I doubt someone is able to remember any details... ;)
[1] http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/wikipedia.py?r...
...BUT what about the error I got? Does anybody experience the same? I think it is related to network timeouts (e.g. servers not reachable) and thus hard to reproduce...
I was using Python 2.7.3: Python 2.7.3 (default, May 29 2012, 14:54:22) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Greetings and thanks for any hints! DrTrigon