From b6b5c09e4b5c14f2b48b326f04865484043947b4 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Tue, 20 Dec 2022 11:54:51 -0800 Subject: [PATCH] simplify dale --- app/cogs/animal_functions.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/cogs/animal_functions.py b/app/cogs/animal_functions.py index e75db67b..fe7dd85f 100644 --- a/app/cogs/animal_functions.py +++ b/app/cogs/animal_functions.py @@ -88,15 +88,7 @@ class AnimalFunctions(commands.Cog): ) async def dale(self, ctx: commands.Context): - # If the file picked is too large, try again - dale_pic = None - while not dale_pic: - try: - dale_pic = animals.dale() - await ctx.respond(file=discord.File(dale_pic)) - except Exception: - print("File too large, trying again") - dale_pic = None + await ctx.respond(file=discord.File(animals.dale())) @commands.slash_command( guild_ids=None, name="rat", description="Posts a photo of a rat"