jenkins-bot has submitted this change and it was merged.
Change subject: Making upload API warning ignorable ......................................................................
Making upload API warning ignorable
Bug: 71401 Change-Id: Id064a55dd5681290a2af1af14b10d7d5f6fa80d8 --- M scripts/imagetransfer.py 1 file changed, 4 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved XZise: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py index aad4744..f26e254 100644 --- a/scripts/imagetransfer.py +++ b/scripts/imagetransfer.py @@ -152,11 +152,12 @@
class ImageTransferBot: def __init__(self, generator, targetSite=None, interwiki=False, - keep_name=False): + keep_name=False, ignore_warning=False): self.generator = generator self.interwiki = interwiki self.targetSite = targetSite self.keep_name = keep_name + self.ignore_warning = ignore_warning
def transferImage(self, sourceImagePage): """Get a wikilink to an image, download it and its description, @@ -199,7 +200,8 @@ targetSite=self.targetSite, urlEncoding=sourceSite.encoding(), keepFilename=self.keep_name, - verifyDescription=not self.keep_name) + verifyDescription=not self.keep_name, + ignore_warning=self.ignore_warning) # try to upload targetFilename = bot.run() if targetFilename and self.targetSite.family.name == 'commons' and \
pywikibot-commits@lists.wikimedia.org