jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Always throttle API request by default
......................................................................
[FIX] Always throttle API request by default
In a354068e710ca961068935238adb04603c100c40 the feature was
introduced to not throttle certain API calls. The default
value is switched in that.
Change-Id: I7e40c467cbdb24ce2bf77458fed9817347aea466
---
M pywikibot/data/api.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 11df17b..b86b803 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -153,7 +153,7 @@
'from it.')
else:
self.mime = kwargs.pop('mime', False)
- self.throttle = kwargs.pop('throttle', False)
+ self.throttle = kwargs.pop('throttle', True)
self.max_retries = kwargs.pop("max_retries",
pywikibot.config.max_retries)
self.retry_wait = kwargs.pop("retry_wait",
pywikibot.config.retry_wait)
self.params = {}
--
To view, visit
https://gerrit.wikimedia.org/r/157676
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7e40c467cbdb24ce2bf77458fed9817347aea466
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>