Xqt has submitted this change and it was merged.
Change subject: Use getSite function, not constructor, as docs say, fixing bug with script ......................................................................
Use getSite function, not constructor, as docs say, fixing bug with script
Change-Id: Ic947805d22d7f64e33b924c1e4449606431678fa --- M imagetransfer.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/imagetransfer.py b/imagetransfer.py index f4c9ee7..a950d48 100644 --- a/imagetransfer.py +++ b/imagetransfer.py @@ -360,7 +360,7 @@ targetLang = pywikibot.getSite().language if not targetFamily: targetFamily = pywikibot.getSite().family - targetSite = pywikibot.Site(targetLang, targetFamily) + targetSite = pywikibot.getSite(targetLang, targetFamily) bot = ImageTransferBot(gen, interwiki=interwiki, targetSite=targetSite, keep_name=keep_name) bot.run()