diff options
author | 2021-04-22 20:25:38 +0100 | |
---|---|---|
committer | 2021-04-22 20:25:38 +0100 | |
commit | 29084d1576e1435a5a4a32071a79b6af28acd362 (patch) | |
tree | 63e5ecd6004d0a9c59510999f3fe701bc8b6c2f0 /bot/utils/converters.py | |
parent | Merge pull request #697 from ToxicKidz/fix_catify (diff) |
Fix errors when a subreddit has <5 posts.
If a subreddit has <2 posts, the posts[1] check would fail with an IndexError. If
the subreddit had less that 5 posts, then the k=5 check would also error. These changes
harden the command for these edge cases.
Diffstat (limited to 'bot/utils/converters.py')
0 files changed, 0 insertions, 0 deletions