Hi Binaris, I was investigating in that issue again and found a wrong order for the re.escape() sequence. This caused some errors in past with blanks and underlines in the section headers. I fixed it in r11755/r11756. Could you please validate it for your script.
Thanks and sorry for trouble xqt ----- Original Nachricht ---- Von: Bináris <[email protected]> An: Pywikipedia discussion list <[email protected]> Datum: 06.07.2013 00:16 Betreff: [Pywikipedia-l] Script halted, textlib.py? > Hi, this is a message from the server running masvita.py. > The only change in code since the last successful run is here: > http://hu.wikipedia.org/w/index.php?title=Szerkeszt%C5%91:BinBot/masvita.py& > diff=prev&oldid=13723804 > This is also the source of my script. > The error message is below and it mentions textlib.py at the end. Has > anything changed? I can't imagine how my above modification in the quoted > text could cause the crash. > > > ---------- Forwarded message ---------- > From: Cron Daemon <[email protected]> > Date: 2013/7/2 > Subject: Cron <binaris@tron> bash weekofmonth 1 python > pywikipedia/masvita.py > /dev/null > To: [email protected] > > > No handlers could be found for logger "pywiki" > NOTE: You have new messages on wikipedia:hu > > Getting references to [[Sablon:Másvita]] via API... > > Reading section info from [[Wikipédia:Kocsmafal (egyéb)/Archív53]] via > API... > > A pywikipedia/masvita.py 09:02-kor megszakadt. > A feldolgozás során mentési hiba nem történt. > > > Email sent. > > Traceback (most recent call last): > File "pywikipedia/masvita.py", line 279, in <module> > main() > File "pywikipedia/masvita.py", line 273, in main > bot.run() > File "pywikipedia/masvita.py", line 208, in run > comment += self.commenttext(self.found(archtitle), False) > File "pywikipedia/masvita.py", line 134, in found > section.get() > File "/home/binaris/pywikipedia/wikipedia.py", line 741, in get > expandtemplates = expandtemplates) > File "/home/binaris/pywikipedia/wikipedia.py", line 881, in _getEditPage > not does_text_contain_section(pagetext, self.section()): > File "/home/binaris/pywikipedia/pywikibot/textlib.py", line 1078, in > does_text_contain_section > m = re.search("=+[ ']*%s[ ']*=+" % section, pagetext) > File "/usr/lib/python2.7/re.py", line 142, in search > return _compile(pattern, flags).search(string) > File "/usr/lib/python2.7/re.py", line 244, in _compile > raise error, v # invalid expression > sre_constants.error: multiple repeat > > > > -- > Bináris > > > -------------------------------- > > _______________________________________________ > Pywikipedia-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > _______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
