diff options
| author | 2020-10-01 15:30:27 +0530 | |
|---|---|---|
| committer | 2020-10-01 15:30:27 +0530 | |
| commit | 3554a57cdfd9904e180cbe1689e36fea9df4dfb3 (patch) | |
| tree | 8037a6c6d59558830a426747a8711cfcc3f76232 | |
| parent | handling empty list error in get_top_posts() method and filter posts using li... (diff) | |
re-add comment.
| -rw-r--r-- | bot/exts/info/reddit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/reddit.py b/bot/exts/info/reddit.py index c6aecaa20..0a49e53e7 100644 --- a/bot/exts/info/reddit.py +++ b/bot/exts/info/reddit.py @@ -148,7 +148,7 @@ class Reddit(Cog): await asyncio.sleep(3) log.debug(f"Invalid response from: {url} - status code {response.status}, mimetype {response.content_type}") - return list() + return list() # Failed to get appropriate response within allowed number of retries. async def get_top_posts(self, subreddit: Subreddit, time: str = "all", amount: int = 5) -> Embed: """ |