aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ben Diller <[email protected]>2019-10-03 15:58:47 -0600
committerGravatar GitHub <[email protected]>2019-10-03 15:58:47 -0600
commitdf4906c9bd54dfd12201e3684cdfafb74693c06f (patch)
treeadd2b9d413bbc05504b361abc76d5f25306eb553
parentMove asyncio.sleep() to avoid disturbing function signatures. (diff)
Improve readability
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/cogs/reddit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/reddit.py b/bot/cogs/reddit.py
index 08a725900..6880aab85 100644
--- a/bot/cogs/reddit.py
+++ b/bot/cogs/reddit.py
@@ -55,6 +55,7 @@ class Reddit(Cog):
content = await response.json()
posts = content["data"]["children"]
return posts[:amount]
+
await asyncio.sleep(3)
log.debug(f"Invalid response from: {url} - status code {response.status}, mimetype {response.content_type}")