Revision: 4114 Author: valhallasw Date: 2007-08-26 14:00:43 +0000 (Sun, 26 Aug 2007)
Log Message: ----------- do not catch NoUsername in botMayEdit
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-26 13:28:01 UTC (rev 4113) +++ trunk/pywikipedia/wikipedia.py 2007-08-26 14:00:43 UTC (rev 4114) @@ -765,13 +765,11 @@ except (NoPage, IsRedirectPage, SectionError): return True
- try: - if self.editRestriction: - self.site().forceLogin(sysop=True) - else: - self.site().forceLogin() - except NoUsername: - return False + if self.editRestriction: + self.site().forceLogin(sysop=True) + else: + self.site().forceLogin() + username = self.site()._loggedInAs
for template in templates: