Revision: 6983 Author: nicdumz Date: 2009-06-22 15:05:00 +0000 (Mon, 22 Jun 2009)
Log Message: ----------- calling parent class in __init__
Modified Paths: -------------- branches/rewrite/pywikibot/exceptions.py
Modified: branches/rewrite/pywikibot/exceptions.py =================================================================== --- branches/rewrite/pywikibot/exceptions.py 2009-06-22 15:00:31 UTC (rev 6982) +++ branches/rewrite/pywikibot/exceptions.py 2009-06-22 15:05:00 UTC (rev 6983) @@ -91,6 +91,7 @@ class SpamfilterError(PageNotSaved): """Saving the page has failed because the MediaWiki spam filter detected a blacklisted URL.""" def __init__(self, arg): + super(SpamfilterError, self).__init__(u'MediaWiki spam filter has been triggered') self.url = arg self.args = arg,
pywikipedia-svn@lists.wikimedia.org