Fix deprecated calls to UploadRobot

This commit is contained in:
2018-09-27 08:23:26 +02:00
parent a0377e1f80
commit 1d41e206c0

View File

@@ -330,7 +330,7 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
comment = type(self).upload_comment
filename = job.image
filepath = os.path.join(self.wdir, job.image)
filepath = [ os.path.join(self.wdir, job.image) ]
keepFilename = True #set to True to skip double-checking/editing destination filename
verifyDescription = True #set to False to skip double-checking/editing description => change to bot-mode
ignoreWarning = [ "exists", "duplicate", ] #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
@@ -346,7 +346,7 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
targetSite = targetSite
)
bot.upload_image(debug=True)
bot.run()
def main(*args):
"""