Page MenuHomePhabricator

category_redirect.py: RuntimeWarning: ListGenerator invoked without a site for item in pywikibot.data.api.ListGenerator
Closed, ResolvedPublic

Description

Command line:

python pwb.py category_redirect -delay:0 -lang:arz

Output:

Checking hard-redirect category pages.

Checking 735 category redirect pages

Moving pages out of 19 redirected categories.
Retrieving 19 pages from wikipedia:arz.
Page [[هال بلين]] saved
WARNING: .\scripts\category_redirect.py:165: RuntimeWarning: ListGenerator invoked without a site
  for item in pywikibot.data.api.ListGenerator(

تصنيف:Timpanists: 1 found, 1 moved
Page [[تصنيف:Timpanists]] saved
Page [[هال بلين]] saved

Output of version.py:

Pywikibot: [https] r-pywikibot-core (0d206a8, g15873, 2022/01/27, 19:43:29, master)
Release version: 7.0.0.dev0
setuptools version: 60.5.0
mwparserfromhell version: 0.6.3
wikitextparser version: n/a
requests version: 2.27.1
    certificate test: ok
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]

Request:

  • Please fix this warning that is printed when running category_redirect.py
  • This is not an urgent task though, as the script works correctly and the bot edits themselves are correct. Thank you.