aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/converters.py
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-22 20:25:38 +0100
committerGravatar Chris <[email protected]>2021-04-22 20:25:38 +0100
commit29084d1576e1435a5a4a32071a79b6af28acd362 (patch)
tree63e5ecd6004d0a9c59510999f3fe701bc8b6c2f0 /bot/utils/converters.py
parentMerge 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