http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11523
Revision: 11523 Author: drtrigon Date: 2013-05-10 20:05:45 +0000 (Fri, 10 May 2013) Log Message: ----------- bug fix; from trunk, enable to continue after ParseError
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2013-05-10 19:57:56 UTC (rev 11522) +++ branches/rewrite/pywikibot/bot.py 2013-05-10 20:05:45 UTC (rev 11523) @@ -248,9 +248,12 @@ output(u'COMMAND: %s' % unicode(sys.argv))
# new framework release/revision? (handleArgs needs to be called first) - output(u'VERSION: %s' % unicode((version.getversion().strip(), - version.getversion_onlinerepo(), - site.live_version()))) + try: + output(u'VERSION: %s' % unicode((version.getversion().strip(), + version.getversion_onlinerepo(), + site.live_version()))) + except version.ParseError: + exception()
# system if hasattr(os, 'uname'):
pywikipedia-svn@lists.wikimedia.org