diff options
author | 2019-10-03 15:58:47 -0600 | |
---|---|---|
committer | 2019-10-03 15:58:47 -0600 | |
commit | df4906c9bd54dfd12201e3684cdfafb74693c06f (patch) | |
tree | add2b9d413bbc05504b361abc76d5f25306eb553 | |
parent | Move asyncio.sleep() to avoid disturbing function signatures. (diff) |
Improve readability
Co-Authored-By: Mark <[email protected]>
-rw-r--r-- | bot/cogs/reddit.py | 1 |
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}") |