Revision: 3908 Author: wikipedian Date: 2007-07-27 02:00:20 +0000 (Fri, 27 Jul 2007)
Log Message: ----------- Save the history just before terminating. This makes it less probable that a link checking thread finishes after the history has been stored to disk.
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2007-07-27 01:52:12 UTC (rev 3907) +++ trunk/pywikipedia/weblinkchecker.py 2007-07-27 02:00:20 UTC (rev 3908) @@ -637,8 +637,6 @@ if countLinkCheckThreads() > 0: wikipedia.output(u'Remaining %i threads will be killed.' % countLinkCheckThreads()) # Threads will die automatically because they are daemonic. - wikipedia.output(u'Saving history...') - bot.history.save() if bot.history.reportThread: bot.history.reportThread.shutdown() # wait until the report thread is shut down; the user can interrupt @@ -649,6 +647,8 @@ except KeyboardInterrupt: wikipedia.output(u'Report thread interrupted.') bot.history.reportThread.kill() + wikipedia.output(u'Saving history...') + bot.history.save() else: wikipedia.showHelp()
pywikipedia-l@lists.wikimedia.org