Revision: 7885 Author: xqt Date: 2010-01-19 07:31:56 +0000 (Tue, 19 Jan 2010)
Log Message: ----------- username might be deleted. (Bugfix for #2929809)
Modified Paths: -------------- trunk/pywikipedia/xmlreader.py
Modified: trunk/pywikipedia/xmlreader.py =================================================================== --- trunk/pywikipedia/xmlreader.py 2010-01-18 06:01:02 UTC (rev 7884) +++ trunk/pywikipedia/xmlreader.py 2010-01-19 07:31:56 UTC (rev 7885) @@ -113,6 +113,12 @@ self.inRevisionTag = True elif name == 'contributor': self.inContributorTag = True + # username might be deleted + try: + if attrs['deleted'] == 'deleted': + self.username = u'' + except KeyError: + pass elif name == 'text': self.destination = 'text' self.text=u''