Revision: 7432 Author: alexsh Date: 2009-10-12 05:26:55 +0000 (Mon, 12 Oct 2009)
Log Message: ----------- fix: other 'user' not exists
Modified Paths: -------------- trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py =================================================================== --- trunk/pywikipedia/welcome.py 2009-10-11 20:21:33 UTC (rev 7431) +++ trunk/pywikipedia/welcome.py 2009-10-12 05:26:55 UTC (rev 7432) @@ -684,12 +684,12 @@ for x in lev['query']['logevents']: someone_found = True count += 1 + if 'user' not in x: + continue if not globalvar.welcomeAuto and x['action'] == 'autocreate': showStatus(3) wikipedia.output(u'%s has been created automatically.' % x['user']) continue - if "userhidden" in x: - continue
yield userlib.User(self.site, x['user'])