2012/12/31 Merlijn van Deen valhallasw@arctus.nl
It was added by xql in r10769:
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/wikipedia.py?r...
This happened quite recently, I did not know about that. Earlier I always
read the SVN notifies but since this spring I had no time for that. Anyhow, this is not a general expectation to bot owners. I think we should generally re-think our communication, and have a proper noticeboard or newsletter with the essence of talks and updates.
Basically, I think there are two ways of improving this, as the basic idea of preventing reverts makes sense to me:
Agree.
I cannot reproduce this:
raise wikipedia.LockedPage('something')
Traceback (most recent call last): File "<stdin>", line 1, in <module> pywikibot.exceptions.LockedPage: something
I don't know the difference but it should be tested from a script rather than command line. I never see such messages, although I tried to define some myself.>
Good to hear you have solved the problem - and sorry that it wasted
that much time. But please also take from this that you should be prepared for exceptions when saving - you want to handle the exceptions in a sensible way, so the bot doesn't crash, wasting your time :-)
Well, it's my fault. I wasn't prepared for a locked page as the bot works on these pages for users' wish and they have no reason to prevent bot of updating the page and I met this new case for the first time. I will be more careful (but the error was really not easy to understand).
Cheers and happy new year