The sleep in
try:
archiver = PageArchiver(pg, a, salt, force)
archiver.run()
time.sleep(10)
except Exception:
pywikibot.error(u'Error occurred while processing page %s' % pg)
pywikibot.exception(tb=True)appears to be of little use because
- There is no need to wait for user action, because the script is normally run periodically, not interactively.
- There is no need to limit API requests, because requests are sequentially emitted in this script.
This was suggested in https://gerrit.wikimedia.org/r/#/c/215871/.