https://bugzilla.wikimedia.org/show_bug.cgi?id=71727
Bug ID: 71727 Summary: chunked upload does not ignore warnings Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: network Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
If a file already exists on the server with the same title, chunked Site.upload fails with:
Traceback (most recent call last): File "tests/upload_tests.py", line 45, in test_png_chunked ignore_warnings=True, chunk_size=1024) File ".../pywikibot/tools.py", line 367, in wrapper return method(*__args, **__kw) File ".../pywikibot/site.py", line 4404, in upload % {'msg': message}) UploadWarning: exists: File MP_sounds-pwb.png already exists.
Chunked uploading with a new title works correctly:
https://test.wikipedia.org/wiki/File:MP_sounds-pwb-chunked.png