Xqt added a comment.
I did this hack:
oldRawVMText = vmPage.text rev_id = vmPage.latest_revision_id
for reading and a sanity check before writing:
# sanity check if vmPage.latest_revision.revid != rev_id: print('Revision ID changed') raise pywikibot.EditConflict vmPage.put(newRawText, u"Bot: Abschnitt%s erledigt: %s" % (('', 'e')[bool(userOnVMpageFound-1)], editSummary + openSections + oldestHeadlineWithOpenStatus), False, minorEdit=True, force=True)
TASK DETAIL https://phabricator.wikimedia.org/T93364
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: Mpaa, jayvdb, Xqt, Aklapper, pywikipedia-bugs