[Pywikipedia-l] replace.py error

Kudu kududot at gmail.com
Fri Sep 9 17:30:46 UTC 2011


Please ignore.

On Fri, Sep 9, 2011 at 12:42 PM, Kudu <kududot at gmail.com> wrote:
> node:pywikipedia kudu$ python replace.py -transcludes:sometemplate
> -regex 'someregex' 'somereplacement'
> unicode test: triggers problem #3081100
> Getting references to [[Template:sometemplate]] via API...
> Getting 1 pages from wiki:wiki...
> Traceback (most recent call last):
>   File "replace.py", line 825, in <module>
>     main()
>   File "replace.py", line 816, in main
>     bot.run()
>   File "replace.py", line 399, in run
>     new_text = self.doReplacements(new_text)
>   File "replace.py", line 342, in doReplacements
>     allowoverlap=self.allowoverlap)
>   File "~/pywikipedia/pywikibot/textlib.py", line 175, in replaceExcept
>     match.group(groupID) + \
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> ~K
>



More information about the Pywikipedia-l mailing list