Page MenuHomePhabricator

image.py tries to pass a generator to the bot twice
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:

C:\pwb\GIT\core>pwb image pwb -simulate
WARNING: C:\pwb\GIT\core\pywikibot\bot.py:1261: UserWarning: ImageRobot has a generator already. Ignoring argument.
  pywikibot.warn('{} has a generator already. Ignoring argument.'

WARNING: generator is not a valid option. It was ignored.

0 pages read
0 pages written
0 pages skipped
Execution time: 0 seconds
Script terminated successfully.

C:\pwb\GIT\core>

What happens?:
A warning is shown but the argument is ignored:

WARNING: C:\pwb\GIT\core\pywikibot\bot.py:1261: UserWarning: ImageRobot has a generator already. Ignoring argument.
  pywikibot.warn('{} has a generator already. Ignoring argument.'

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Pywikibot 7.0.0.dev0

Event Timeline

Xqt triaged this task as Medium priority.

Change 742203 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] Don't pass generator parameter twice to ImageRobot

https://gerrit.wikimedia.org/r/742203

Change 742203 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Don't pass generator parameter twice to ImageRobot

https://gerrit.wikimedia.org/r/742203