Revision: 4221 Author: russblau Date: 2007-09-10 14:45:03 +0000 (Mon, 10 Sep 2007)
Log Message: ----------- Catch LockedPage exception
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2007-09-09 12:00:11 UTC (rev 4220) +++ trunk/pywikipedia/catlib.py 2007-09-10 14:45:03 UTC (rev 4221) @@ -429,7 +429,9 @@ try: article.put(text, comment) except wikipedia.EditConflict: - wikipedia.output(u'Skipping %s because of edit conflict' % (article.title())) + wikipedia.output(u'Skipping %s because of edit conflict' % article.title()) + except wikipedia.LockedPage: + wikipedia.output(u'Skipping locked page %s' % article.title()) return
# This loop will replace all occurrences of the category to be changed, and remove duplicates.