Browse Source

Fix deprecated calls to UploadRobot

develop
Jonathan Golder 4 years ago
parent
commit
1d41e206c0
  1. 4
      euroexange/euroexange.py

4
euroexange/euroexange.py

@ -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):
"""

Loading…
Cancel
Save