Xqt added a comment.
As described above the message "Script terminated successfully" only
indicated whether the script does not terminated with an exception. I would not
like to change this behaviour. Consider for example this case: `pwb add_text
test -page:Foo -page:Bar` which tries to add "test" to the both pages "Foo" and
"Bar" and assume that "Bar" has a `{{nobots}}` template in it. The script would
exit with something like this:
2 read operations
1 write operation
Execution time: 12 seconds
Read operation time 6 seconds
Write operation time 5 seconds
Script terminated successfully.
This script is successfully even if one write operation failed. The failing
operation is indicated by a warning. (I aggree that the warning above is ugly!)
The only way I can suggest is to use `ignore_save_related_errors` set to
`False` which would raise a `PageSaveRelatedError` and terminate the script
immediately by:` Script terminated by exception: PageSaveRelatedError`. Maybe
this `ignore_save_related_errors` setting could be a config setting and can be
overridden by command line.
TASK DETAIL
https://phabricator.wikimedia.org/T338969
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Yann, Udehb-WMF, PotsdamLamb, Jyoo1011,
Y.ssk, JohnsonLee01, SHEKH, Dijkstra, Muchiri124, CBogen, Khutuck, Zkhalido,
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo,
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Krenair
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]