Bugs item #2790339, was opened at 2009-05-12 00:26 Message generated for change (Tracker Item Submitted) made by platonides You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2790339...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Platonides (platonides) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with revdelete
Initial Comment: 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.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2790339...
pywikipedia-bugs@lists.wikimedia.org