Revision: 6764 Author: nicdumz Date: 2009-04-30 08:28:31 +0000 (Thu, 30 Apr 2009)
Log Message: ----------- Not all pages have _contents attribute
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-04-30 08:24:07 UTC (rev 6763) +++ trunk/pywikipedia/interwiki.py 2009-04-30 08:28:31 UTC (rev 6764) @@ -1432,7 +1432,8 @@ # foundIn can contain either Page or StoredPage objects # calling the destructor on _contents will delete the # disk records if necessary - del page._contents + if hasattr(page, '_contents'): + del page._contents
def replaceLinks(self, page, newPages, bot): """