Inductiveload created this task.
Inductiveload added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
This does not work:
python pwb.py listpages -linter:misnested-tag -ns:Wikisource
But this does:
python pwb.py listpages -ns:Wikisource -linter:misnested-tag
The error from the former is :
Traceback (most recent call last):
File "/opt/pywikibot/pwb.py", line 363, in <module>
if not main():
File "/opt/pywikibot/pwb.py", line 355, in main
run_python_file(filename,
File "/opt/pywikibot/pwb.py", line 74, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "./scripts/listpages.py", line 284, in <module>
main()
File "./scripts/listpages.py", line 216, in main
gen_factory.handleArg(arg)
File "/opt/pywikibot/pywikibot/pagegenerators.py", line 1207, in handleArg
handler_result = handler(value)
File "/opt/pywikibot/pywikibot/pagegenerators.py", line 900, in
_handle_namespaces
assert not isinstance(self._namespaces, frozenset)
AssertionError
CRITICAL: Exiting due to uncaught exception <class 'AssertionError'>
Other filters like `-ql` seems to work fine after the `-linter` parameter.
Version:
Pywikibot: [https] r-pywikibot-core.git (1a11f78, g14378, 2021/03/08,
18:42:14, master)
Release version: 6.0.0.dev0
TASK DETAIL
https://phabricator.wikimedia.org/T276916
WORKBOARD
https://phabricator.wikimedia.org/project/board/87/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Inductiveload
Cc: Aklapper, Inductiveload, pywikibot-bugs-list, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs