Browse Source

Set upload warnings which can be ignored

We always upload existing images, so do not complain about this.
For testing purposes, also duplicates are normal
develop
Jonathan Golder 6 years ago
parent
commit
f4296d8410
  1. 2
      euroexange/euroexange.py

2
euroexange/euroexange.py

@ -333,7 +333,7 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
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=False #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
ignoreWarning = [ "exists", "duplicate", ] #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
targetSite = pywikibot.Site()
bot = pywikibot.specialbots.UploadRobot(

Loading…
Cancel
Save