jenkins-bot has submitted this change and it was merged.
Change subject: Silence warnings ......................................................................
Silence warnings
Set value of self.site before refering to it
Bug: T146580 Change-Id: I60f757a9281810453caea66f6a50a9200765a439 --- M scripts/image.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/image.py b/scripts/image.py index 59464b0..bfd3b32 100755 --- a/scripts/image.py +++ b/scripts/image.py @@ -120,6 +120,7 @@
super(ImageRobot, self).__init__(self.generator, replacements, always=self.getOption('always'), + site=self.site, summary=summary)
@@ -156,7 +157,8 @@ 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:
pywikibot-commits@lists.wikimedia.org