Bináris
2018-02-17 11:12:46 UTC
Hi,
I have
target = pywikibot.Page(site, uploadPage)
oldtext = target.get()
<long computing>
target.put(pretext + text, uploadComment)
pywikibot.exceptions.EditConflict: An edit conflict has occured.
So, is the likelihood of an edit conflict connected to elpased time between
instantiation and put(), or between get() and put()?
Is it useful to reinstantiate the page?
Is it useful to give a second chance to put() in case of edit conflict, or
loop it?
I have
target = pywikibot.Page(site, uploadPage)
oldtext = target.get()
<long computing>
target.put(pretext + text, uploadComment)
pywikibot.exceptions.EditConflict: An edit conflict has occured.
So, is the likelihood of an edit conflict connected to elpased time between
instantiation and put(), or between get() and put()?
Is it useful to reinstantiate the page?
Is it useful to give a second chance to put() in case of edit conflict, or
loop it?
--
Bináris
Bináris