Wikimedia

Pywikibot: checkimages.py reports execution time even when the bot does not execute

See https://phabricator.wikimedia.org/T70613

If there was an error during initialisation the execution time is output (to stderr by default). e.g.:

$ python pwb.py scripts/checkimages.py -family:wikidata -lang:wikidata -simulate
Your project is not supported by this script.
You have to edit the script and add it!
Execution time: 0 seconds

Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. See https://www.mediawiki.org/wiki/User:John_Vandenberg/GCI_walk-through for a short introduction to using Pywikibot. Patches can be submitted via Gerrit (you need a MediaWiki.org account). See https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC ).

Task tags

  • python
  • pywikibot

Students who completed this task

Georggi

Task type

  • code Code
close

2015