-----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?…
...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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAk/ki5cACgkQAXWvBxzBrDBkBgCfWS/QJVd4xSzNiEqgGFzigUTa
kOkAoNdjOV0Zmhnw9dyOAPOLl1xYbZt1
=O9hG
-----END PGP SIGNATURE-----