JJMC89 created this task.
JJMC89 added projects: Pywikibot-Scripts, Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**List of steps to reproduce**:
$ python3 /shared/pywikibot/core_stable/scripts/touch.py -lang:en
-family:wikipedia -purge -forcelinkupdate -cat:'Pages using duplicate arguments
in template calls'
**What happens?**:
Retrieving 50 pages from wikipedia:en.
0 pages read
0 pages written
0 pages skipped
Execution time: 0 seconds
Script terminated by exception:
ERROR: TypeError: purgepages() got an unexpected keyword argument '_options'
Traceback (most recent call last):
File "/shared/pywikibot/core_stable/scripts/touch.py", line 120, in
<module>
main()
File "/shared/pywikibot/core_stable/scripts/touch.py", line 114, in main
bot_class(generator=gen, **options).run()
File "/shared/pywikibot/core_stable/pywikibot/bot.py", line 1510, in run
self.treat(page)
File "/shared/pywikibot/core_stable/scripts/touch.py", line 85, in treat
'' if page.purge(**self.opt) else ' not'))
File "/shared/pywikibot/core_stable/pywikibot/page/__init__.py", line
1321, in purge
return self.site.purgepages([self], **kwargs)
File "/shared/pywikibot/core_stable/pywikibot/site/_decorators.py", line
92, in callee
return fn(self, *args, **kwargs)
TypeError: purgepages() got an unexpected keyword argument '_options'
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
**What should have happened instead?**:
The script purges the specified and exists successfully
**Software version**:
Pywikibot: [https] r-pywikibot-core.git (9c7f541, g1, 2021/05/28, 15:45:45,
stable)
Release version: 6.2.0
requests version: 2.21.0
cacerts: /etc/ssl/certs/ca-certificates.crt
certificate test: ok
Python: 3.5.3 (default, Apr 5 2021, 09:00:41)
TASK DETAIL
https://phabricator.wikimedia.org/T284005
WORKBOARD
https://phabricator.wikimedia.org/project/board/103/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JJMC89
Cc: Aklapper, pywikibot-bugs-list, JJMC89, Shalomori123, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]