http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9345
Revision: 9345 Author: filnik Date: 2011-07-09 12:36:55 +0000 (Sat, 09 Jul 2011) Log Message: ----------- bugfix for move option
Modified Paths: -------------- trunk/pywikipedia/blockpageschecker.py
Modified: trunk/pywikipedia/blockpageschecker.py =================================================================== --- trunk/pywikipedia/blockpageschecker.py 2011-07-09 12:25:42 UTC (rev 9344) +++ trunk/pywikipedia/blockpageschecker.py 2011-07-09 12:36:55 UTC (rev 9345) @@ -356,9 +356,12 @@ # We tried to fix edit-protection templates, but it did not work. pywikibot.output('Warning : No edit-protection template could be found')
- if moveBlockCheck: + if moveBlockCheck and changes > -1: # checking move protection now - moveRestr = restrictions['move'] + try: + moveRestr = restrictions['move'] + except KeyError: + moveRestr = False changes = -1
if not moveRestr:
pywikipedia-svn@lists.wikimedia.org