Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
pywikibot.data.api.APIError: protectednamespace-interface should raise any
PageSaveRelatedError that it can be handled smoothly upstream e.g. by
Page.save() method
Script terminated by exception:
ERROR: APIError: protectednamespace-interface: This page provides interface
text for the software on this wiki, and is protected to prevent abuse. To add
or change translations for all wikis, please use [https://translatewiki.net/
translatewiki.net], the MediaWiki localisation project.
[help: See https://nl.wikipedia.org/w/api.php for API usage. Subscribe to
the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for
notice of API deprecations and breaking changes.]
Traceback (most recent call last):
File "pwb.py", line 390, in <module>
if not main():
File "pwb.py", line 382, in main
run_python_file(filename,
File "pwb.py", line 100, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File ".\scripts\replace.py", line 1211, in <module>
main()
File ".\scripts\replace.py", line 1202, in main
bot.run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1527, in run
super(Bot, self).run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1435, in run
self.treat(page)
File ".\scripts\replace.py", line 829, in treat
page.save(summary=self.generate_summary(applied),
File "C:\pwb\GIT\core\pywikibot\tools\__init__.py", line 1797, in wrapper
return obj(*__args, **__kw)
File "C:\pwb\GIT\core\pywikibot\tools\__init__.py", line 1797, in wrapper
return obj(*__args, **__kw)
File "C:\pwb\GIT\core\pywikibot\page\__init__.py", line 1303, in save
self._save(summary=summary, watch=watch, minor=minor, botflag=botflag,
File "C:\pwb\GIT\core\pywikibot\page\__init__.py", line 138, in wrapper
handle(func, self, *args, **kwargs)
File "C:\pwb\GIT\core\pywikibot\page\__init__.py", line 132, in handle
callback(self, err)
File ".\scripts\replace.py", line 689, in _replace_sync_callback
raise err
File "C:\pwb\GIT\core\pywikibot\page\__init__.py", line 117, in handle
func(self, *args, **kwargs)
File "C:\pwb\GIT\core\pywikibot\page\__init__.py", line 1315, in _save
done = self.site.editpage(self, summary=summary, minor=minor,
File "C:\pwb\GIT\core\pywikibot\site\__init__.py", line 1339, in callee
return fn(self, *args, **kwargs)
File "C:\pwb\GIT\core\pywikibot\site\__init__.py", line 5382, in editpage
result = req.submit()
File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2091, in submit
raise APIError(**result['error'])
pywikibot.data.api.APIError: protectednamespace-interface: This page
provides interface text for the software on this wiki, and is protected to
prevent abuse. To add or change translations for all wikis, please use
[https://translatewiki.net/ translatewiki.net], the MediaWiki localisation
project.
[help: See https://nl.wikipedia.org/w/api.php for API usage. Subscribe to
the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for
notice of API deprecations and breaking changes.]
CRITICAL: Exiting due to uncaught exception <class
'pywikibot.data.api.APIError'>
TASK DETAIL
https://phabricator.wikimedia.org/T250549
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs