Last modified: 2014-11-01 07:18:41 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/937/ Reported by: platonides Created on: 2009-05-11 22:26:00 Subject: Problems with revdelete Original description: Wikipedia is now using revdelete in everyday use. This means that content, editor or summaries may be selectively deleted. pywikipediabot isn't prepared to handle that, and will break throwing an exception, even if that field isn't needed for the specific action being done. I encountered it with instances of <contributor deleted="deleted"/> but will likely happen with all deleted fields. If you use -page: generator where it has the contributor deleted, it'll throw from xmlreader.py, line 180, in endElement text, self.username, AttributeError: MediaWikiXmlHandler instance has no attribute 'username' MediaWikiXmlHandler instance has no attribute 'username' If you were using a -xml: generator, it's much more cyptic: xmlreader.py", line 64, in \_\_init\_\_ self.username = username.strip\(\) AttributeError: 'bool' object has no attribute 'strip' 'bool' object has no attribute 'strip' Using r6870.
Example of XML failing from wikipedia
Problem reported appears to have been while using 'compat' / 'trunk', but it needs to be retested with core.