jenkins-bot submitted this change.
simplify waiting on purge rate limit
Change-Id: I5cd7be48712563764439f6bdead6972c34e60f49
---
M scripts/touch.py
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/scripts/touch.py b/scripts/touch.py
index 047fe23..3c93e25 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -124,12 +124,9 @@
pywikibot.info('{} pages{} purged'
.format(length, '' if done else ' not'))
- if not flush:
- delay = 60 + 2
- if delay:
- pywikibot.info(
- f'Waiting {delay} seconds due to purge rate limit')
- pywikibot.sleep(0 if config.simulate else delay)
+ if not flush and not config.simulate:
+ pywikibot.info('Waiting due to purge rate limit')
+ pywikibot.sleep(62)
def main(*args: str) -> None:
To view, visit change 884431. To unsubscribe, or for help writing mail filters, visit settings.