From 06ecc7bcc3b87d3d4371fd1dea0f4cd88643c4de Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Wed, 12 Aug 2020 20:36:40 -0500 Subject: [PATCH] e621 now provides just an empty list as their posts, handle this --- cogs/images.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/images.py b/cogs/images.py index 232f9ee..8a2f22b 100644 --- a/cogs/images.py +++ b/cogs/images.py @@ -286,6 +286,9 @@ class Images(commands.Cog): await ctx.send("No results with that tag {}".format(ctx.message.author.mention)) return + # If we're here then there was nothing in the posts, or nothing found that's not blacklisted + await ctx.send("No results with that tag {}".format(ctx.message.author.mention)) + def setup(bot): bot.add_cog(Images(bot))