diff --git a/palette/palette.py b/palette/palette.py index bdaee92b..96d7fe7b 100644 --- a/palette/palette.py +++ b/palette/palette.py @@ -70,9 +70,7 @@ async def palette( if not image: image = str(ctx.author.display_avatar) if attachments := ctx.message.attachments: - valid_attachments = [ - a for a in attachments if a.content_type.startswith("image/") - ] + valid_attachments = [a for a in attachments if a.content_type.startswith("image/")] if valid_attachments: image = valid_attachments[0].url @@ -80,7 +78,7 @@ async def palette( img = await self.get_img(image) if isinstance(img, dict): return await ctx.send(img["error"]) - + colors, file = await self.bot.loop.run_in_executor( None, self.create_palette, img, amount, detailed, sort )