[Pywikipedia-l] Botlist broken

Dr. Trigon dr.trigon at surfeu.ch
Thu Sep 15 07:54:24 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all

Today DrTrigonBot complained about a

"HTTPError: HTTP Error 400: Bad Request"

that was originating from botlist.py. I was able to track this
down to the point where "タチコマ robot" should be used in an
URL as offset (line 96) which caused the error when puting in
this bot name. As I can see a

urllib.quote(...)

should solve the problem as done in the attached file. Could
please someone verify this (if there is time) and then commit
this change to SVN.

Btw: I was not able to find something similar to "urllib.quote"
in the bot framework so I had to import urllib.

Thanks a lot and Greetings
DrTrigon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5xrygACgkQAXWvBxzBrDAxLwCfWtikjvv88d2Z+F49q37OcHtP
axcAniISk6qypZdT3WxlbAJPxfo9x4zn
=DTud
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: botlist.py
Url: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20110915/5bdcdae4/attachment-0001.txt 


More information about the Pywikipedia-l mailing list