Page MenuHomePhabricator

replace.py should not crash when it does a replacement in Module: and get rejected by API for changing content model
Open, LowPublic

Description

I started bot regularly and when bot comes to protected page which only can edit only administrators, I got error with traceback (T171713).. See picture

ScreenShot_20170820052156.png (754×589 px, 93 KB)

I suggest to show message: This page only can edit administrators and to continue on another, and this one that can not be edited to skip.

Event Timeline

-fix:datumi

is because i added code in user-fixes.py

Maybe to implement and on other scripts.

zhuyifei1999 renamed this task from Editing protected pages with bot - feature suggestion to replace.py should not crash when it does a replacement in Module: and get rejected by API for changing content model.Aug 20 2017, 7:35 AM

First of all, the bot should not attempt to change the content model.

Xqt triaged this task as Low priority.Aug 22 2017, 5:31 AM
Xqt subscribed.

I propose to update your bot first. Regarding to the traceback your bot is very outdated. The next recommendation is to use -namespace Option. You may use it in a way which namespace to be processed or in a way which namespace to be excluded from processing.

I propose to update your bot first. Regarding to the traceback your bot is very outdated. The next recommendation is to use -namespace Option. You may use it in a way which namespace to be processed or in a way which namespace to be excluded from processing.

Okay.

I updated bot using git clone command. Okay, it is resolved.. Only now I suggest to when is any page protected to show message: This page only can edit administrators
and to continue on another, and this one that can not be edited to skip.

I do not mean only the namespace in the image, but all the namespaces (even the main).