https://bugzilla.wikimedia.org/show_bug.cgi?id=64358
Bug ID: 64358 Summary: Incorrect EditConflict Exception Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: zhuyifei1999@gmail.com CC: info@gno.de Web browser: --- Mobile Platform: ---
Site.upload may trigger EditConflict when using Page.save if page is loaded before the upload.
EditConflict is raised in site.py line 2796-2798: if lastrev is not None and page.latestRevision() != lastrev: raise EditConflict( "editpage: Edit conflict detected; saving aborted.")