Lokal_Profil created this task.
Lokal_Profil added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Calling site.upload() with a non-zero chunk_size and an callable ignore_warnings results in the following error message when an allowed warning is raised:

Error: File:Foo.jpg: badparams: Cannot supply a filekey when offset is 0 [help:See https://commons.wikimedia.org/w/api.php for API usage]

This happens because of if 'offset' not in data: data['offset'] = True (introduced in https://gerrit.wikimedia.org/r/#/c/234851/)
which sets offset = True on line 6106 thus passing offset: True to the mediawiki api when the continue brings the proces back to line 6072.


TASK DETAIL
https://phabricator.wikimedia.org/T151562

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lokal_Profil
Cc: Aklapper, XZise, Lokal_Profil, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to