Xqt created this task.
Xqt added projects: Pywikibot-core, Pywikibot-General.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

BaseBot._save_page() does not recognize ignore_save_related_Errors class variable setting for OtherPageSaveError exception but raises that error:

Edit summary: Bot: Stimmberechtigung geprüft, abgelaufene Stimmen entfernt.

122 pages read
15 pages written
Execution time: 981 seconds
Read operation time: 8 seconds
Write operation time: 65 seconds
Script terminated by exception:

ERROR: OtherPageSaveError: Edit to page [[Wikipedia:Adminwiederwahl/NordNordWest]] failed:
Editing restricted by {{bots}} template
Traceback (most recent call last):
  File "C:\pwb\SVN\core\pwb.py", line 263, in <module>
    if not main():
  File "C:\pwb\SVN\core\pwb.py", line 257, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "C:\pwb\SVN\core\pwb.py", line 121, in run_python_file
    main_mod.__dict__)
  File ".\scripts\xqbot\checkvotes.py", line 623, in <module>
    main()
  File ".\scripts\xqbot\checkvotes.py", line 618, in main
    bot.run()
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1434, in run
    self.treat(page)
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1721, in treat
    super(ExistingPageBot, self).treat(page)
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1785, in treat
    super(NoRedirectPageBot, self).treat(page)
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1648, in treat
    self.treat_page()
  File ".\scripts\xqbot\checkvotes.py", line 479, in treat_page
    summary=self.summary + comment):
  File "C:\pwb\SVN\core\pywikibot\tools\__init__.py", line 1447, in wrapper
    return obj(*__args, **__kw)
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1296, in userPut
    return self._save_page(page, page.save, **kwargs)
  File "C:\pwb\SVN\core\pywikibot\bot.py", line 1326, in _save_page
    func(*args, **kwargs)
  File "C:\pwb\SVN\core\pywikibot\tools\__init__.py", line 1447, in wrapper
    return obj(*__args, **__kw)
  File "C:\pwb\SVN\core\pywikibot\page.py", line 1199, in save
    self, "Editing restricted by {{bots}} template")
pywikibot.exceptions.OtherPageSaveError: Edit to page [[Wikipedia:Adminwiederwah
l/NordNordWest]] failed:
Editing restricted by {{bots}} template
<class 'pywikibot.exceptions.OtherPageSaveError'>
CRITICAL: Closing network session.

C:\pwb\SVN\core>

TASK DETAIL
https://phabricator.wikimedia.org/T156908

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: jayvdb, Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to