Revision: 6331
Author: russblau
Date: 2009-02-06 14:30:59 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
exceptions need arguments
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2009-02-05 23:08:58 UTC (rev 6330)
+++ branches/rewrite/pywikibot/page.py 2009-02-06 14:30:59 UTC (rev 6331)
@@ -429,7 +429,7 @@
"""If this is a category redirect, return the target category
title."""
if self.isCategoryRedirect():
return Category(self.site(), self._catredirect)
- raise pywikibot.IsNotRedirectPage
+ raise pywikibot.IsNotRedirectPage(self.title())
def isEmpty(self):
"""Return True if the page text has less than 4 characters.
@@ -848,7 +848,7 @@
"""
if not self.isRedirectPage():
- raise pywikibot.IsNotRedirectPage
+ raise pywikibot.IsNotRedirectPage(self.title())
if not isinstance(self._redir, Page):
self.site().getredirtarget(self)
return self._redir
Show replies by date