summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-10 17:45:16 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-10 17:45:16 +0100
commitb06333fcb7f5dbd40cf604eb26cf3e56ff7cc479 (patch)
tree8699739f6104b9927f3b6df23784cc15b3f19c90
parentbf2d1e6396bfc1b8b6a910d39d4d0ec8fc4bf759 (diff)
downloadapigrabber-b06333fcb7f5dbd40cf604eb26cf3e56ff7cc479.tar.gz
apigrabber-b06333fcb7f5dbd40cf604eb26cf3e56ff7cc479.zip
sleep less after ratelimit
-rw-r--r--crawler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawler.py b/crawler.py
index 3668bed..ccc4a73 100644
--- a/crawler.py
+++ b/crawler.py
@@ -57,7 +57,7 @@ class Crawler(object):
json.decoder.JSONDecodeError) as err:
# API bug?
logging.error("API error '%s', retrying", err)
- await asyncio.sleep(10)
+ await asyncio.sleep(5)
async def matches(self, params, region="na"):
"""Queries the API for matches and their related data.