python scripts/replace.py -page:User:Kathleen.wright5 wright Dummy -summary:test -lang:en -family:wikisource
does not raise LockedPage exception for User:Kathleen.wright5 (which is a locked page).
python scripts/replace.py -page:User:Kathleen.wright5 wright Dummy -summary:test -lang:en -family:wikisource
does not raise LockedPage exception for User:Kathleen.wright5 (which is a locked page).
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Raise error when replace is done synchronously | pywikibot/core | master | +12 -2 |
@Mpaa there are 2 modes for calling replace.py in current source code with and without -always argument.
This one without -always (I assume that is Your usercase) require user input in CLI, so it looks fully resonable to update pages asynchronously and in fact replace.py just do that. The main question here is what we should do with raised exception (assuming that You have manually processed much more pages then framework could saved. so there are some already approved and haven't been uploaded to Mediawiki).
OK, so after resolving this issue (what to do with queue of pages to be uploaded to Mediawiki after manual aproval) few technical things to be resolved (for two modes):
@Xqt what do You think about it? Is this aproach with changing callback to re-raise exception the proper way to go?
Change 322145 had a related patch set uploaded (by Magul):
Raise error when raplace is done synchronously