Accepting changes with y(es) replace.py raises OtherPageSaveError when it cannot save a page.
If a(lways) is given this error prints a warning and the script continues.
Exceptions should not be raised in such case but handled more comfortable.
Do you want to accept these changes? ([y]es, [N]o, [e]dit original, edit
[l]atest, open in [b]rowser, [m]ore context, [a]ll, [q]uit): y
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 ".\scripts\replace.py", line 815, in run
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 1300, in save
raise pywikibot.OtherPageSaveError(
pywikibot.exceptions.OtherPageSaveError: Edit to page [[نقاش المستخدم:Elph/Archive01]] failed:
Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template
CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.OtherPageSaveError'>