Xqt added a comment.
Same for other scripts which use any rights when reading:
D:\pwb\GIT\core>pwb login
Logged in on wikipedia:de as Xqtest.
Execution time: 0 seconds
D:\pwb\GIT\core>pwb watchlist
Retrieving watchlist for wikipedia:de.
WARNING: API error notloggedin: Please log in to view or edit items on your
watchlist.
Traceback (most recent call last):
File "D:\pwb\GIT\core\pwb.py", line 39, in <module>
sys.exit(main())
^^^^^^
File "D:\pwb\GIT\core\pwb.py", line 35, in main
runpy.run_path(str(path), run_name='__main__')
File "<frozen runpy>", line 291, in run_path
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 516, in <module>
main()
File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 500, in main
if not execute():
^^^^^^^^^
File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 487, in execute
run_python_file(filename, script_args, module)
File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 147, in
run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "D:\pwb\GIT\core\scripts\watchlist.py", line 158, in <module>
main()
File "D:\pwb\GIT\core\scripts\watchlist.py", line 147, in main
count_watchlist(site)
File "D:\pwb\GIT\core\scripts\watchlist.py", line 53, in count_watchlist
watchlist_count = len(refresh(site))
^^^^^^^^^^^^^
File "D:\pwb\GIT\core\scripts\watchlist.py", line 82, in refresh
return list(site.watched_pages(force=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen _collections_abc>", line 330, in __next__
File "D:\pwb\GIT\core\pywikibot\tools\collections.py", line 275, in send
return next(self._started_gen)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 610, in
generator
self.data = self.request.submit()
^^^^^^^^^^^^^^^^^^^^^
File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 1083, in
submit
raise pywikibot.exceptions.APIError(**error)
pywikibot.exceptions.APIError: notloggedin: Please log in to view or edit
items on your watchlist.
[servedby: mw2354;
help: See https://de.wikipedia.org/w/api.php for API usage. Subscribe to
the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/>
for notice of API deprecations and breaking changes.]
CRITICAL: Exiting due to uncaught exception APIError: notloggedin: Please
log in to view or edit items on your watchlist.
[servedby: mw2354;
help: See https://de.wikipedia.org/w/api.php for API usage. Subscribe to
the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/>
for notice of API deprecations and breaking changes.]
D:\pwb\GIT\core>
TASK DETAIL
https://phabricator.wikimedia.org/T329132
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Dsvyas, Aklapper, pywikibot-bugs-list, JJMC89, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]