Jameer has uploaded a new change for review. https://gerrit.wikimedia.org/r/319858
Change subject: Modified image.py To avoid site warnings. ...................................................................... Modified image.py To avoid site warnings. Bug: T146580 Change-Id: Ia85ced3eb67529a279c48f5d51bc6f6bdc2d2bf0 --- M scripts/image.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/58/319858/1 diff --git a/scripts/image.py b/scripts/image.py index 59464b0..f7e4843 100755 --- a/scripts/image.py +++ b/scripts/image.py @@ -75,7 +75,7 @@ 'loose': False, }) - Bot.__init__(self, generator=generator, **kwargs) + Bot.__init__(self, generator=generator,site=self.site **kwargs) self.old_image = old_image self.new_image = new_image @@ -156,7 +156,7 @@ old_imagepage = pywikibot.FilePage(site, old_image) gen = pagegenerators.FileLinksGenerator(old_imagepage) preloadingGen = pagegenerators.PreloadingGenerator(gen) - bot = ImageRobot(preloadingGen, old_image, new_image, **options) + bot = ImageRobot(preloadingGen, old_image, new_image, site = site **options) bot.run() return True else: -- To view, visit https://gerrit.wikimedia.org/r/319858 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia85ced3eb67529a279c48f5d51bc6f6bdc2d2bf0 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Jameer <jameer...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits