Page MenuHomePhabricator

imagetransfer.py fails with TypeError
Closed, ResolvedPublic

Description

C:\pwb\GIT\core>pwb imagetransfer -simulate -page:user:xqt/Test
Traceback (most recent call last):
  File "C:\pwb\GIT\core\pwb.py", line 363, in <module>
    if not main():
  File "C:\pwb\GIT\core\pwb.py", line 355, in main
    run_python_file(filename,
  File "C:\pwb\GIT\core\pwb.py", line 74, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File ".\scripts\imagetransfer.py", line 348, in <module>
    main()
  File ".\scripts\imagetransfer.py", line 344, in main
    bot.run()
  File ".\scripts\imagetransfer.py", line 270, in run
    imagelist = list(page.imagelinks(followRedirects=True))
TypeError: imagelinks() got an unexpected keyword argument 'followRedirects'
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>

C:\pwb\GIT\core>

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Medium priority.Oct 30 2020, 12:37 PM

Change 443832 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] remove outdated "followRedirects" parameter from imagelinks()

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

Change 443832 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] remove outdated "followRedirects" parameter from imagelinks()

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