[Pywikipedia-l] SVN: [6389] branches/rewrite/pywikibot/scripts/touch.py

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Fri Feb 20 15:32:15 UTC 2009


Revision: 6389
Author:   rotem
Date:     2009-02-20 15:32:14 +0000 (Fri, 20 Feb 2009)

Log Message:
-----------
Avoid an exception when showing the help.

Modified Paths:
--------------
    branches/rewrite/pywikibot/scripts/touch.py

Modified: branches/rewrite/pywikibot/scripts/touch.py
===================================================================
--- branches/rewrite/pywikibot/scripts/touch.py	2009-02-20 14:36:24 UTC (rev 6388)
+++ branches/rewrite/pywikibot/scripts/touch.py	2009-02-20 15:32:14 UTC (rev 6389)
@@ -79,6 +79,7 @@
             gen = iter([page])
         else:
             pywikibot.showHelp()
+            return
     preloadingGen = pagegenerators.PreloadingGenerator(gen)
     bot = TouchBot(preloadingGen, redirs)
     bot.run()





More information about the Pywikipedia-l mailing list