Revision: 6484
Author: russblau
Date: 2009-03-03 22:45:15 +0000 (Tue, 03 Mar 2009)
Log Message:
-----------
another type of page protection error
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2009-03-03 22:44:44 UTC (rev 6483)
+++ branches/rewrite/pywikibot/site.py 2009-03-03 22:45:15 UTC (rev 6484)
@@ -2190,7 +2190,7 @@
if err.code == "editconflict":
raise EditConflict(self._ep_errors[err.code] % errdata)
- if err.code == "protectedpage":
+ if err.code in ("protectedpage",
"cascadeprotected"):
raise LockedPage(errdata['title'])
if err.code in self._ep_errors:
raise Error(self._ep_errors[err.code] % errdata)