Please update your bot to release 10028. I've commited some debug information if that
indexError occures. Maybe this gives some hints.
Regards
xqt
----- Original Nachricht ----
Von: Chris Watkins <chriswaterguy(a)appropedia.org>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 19.03.2012 12:19
Betreff: Re: [Pywikipedia-l] debugging a replace.py command
On Mon, Mar 19, 2012 at 18:06, Bináris
<wikiposta(a)gmail.com> wrote:
2012/3/19 Chris Watkins <chriswaterguy(a)appropedia.org>
I've been playing around with this idea, but I can't see why (.*$) would
match an empty part.
It does, because '*' means zero or more occurances.
>> import re
>> re.search('ku.*$', 'ku')
<_sre.SRE_Match object at
0x0000000002ED6510>
That means it matched.
Anyway, that was only the first idea, I am not sure that is the concrete
source of problem in your case.
That's curious - I don't see *how *it could have matched.
I just tried replacing the '*' with '+' and I still get the error:
Reading XML dump...
Traceback (most recent call last):
File "/home/cwg23/pwb/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "/home/cwg23/pwb/pagegenerators.py", line 1039, in
NamespaceFilterPageGenerator
for page in generator:
File "/home/cwg23/pwb/pagegenerators.py", line 1084, in
DuplicateFilterPageGenerator
for page in generator:
File "replace.py", line 217, in __iter__
new_text = pywikibot.replaceExcept(new_text, old, new, self.excsInside,
self.site)
File "/home/cwg23/pwb/pywikibot/textlib.py", line 175, in replaceExcept
match.group(groupID) + \
IndexError: no such group
no such group
0 pages were changed.
--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
Chris Watkins
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
--------------------------------
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l