From 5fa516e028839e45d749290d21bfd4bdd2f1f649 Mon Sep 17 00:00:00 2001 From: LBlend Date: Sat, 29 Apr 2023 00:19:39 +0900 Subject: [PATCH] nitpick leander-linting --- src/cogs/the.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cogs/the.py b/src/cogs/the.py index 98768da..13094a7 100644 --- a/src/cogs/the.py +++ b/src/cogs/the.py @@ -29,6 +29,7 @@ class The(commands.Cog): ---------- (io.BytesIO): data buffer """ + async with aiohttp.ClientSession() as session: async with session.get(url) as resp: if resp.status != 200: @@ -47,9 +48,8 @@ class The(commands.Cog): ) -> None: """ Outlines given text - - """ + for dx in range(-thickness, thickness + 1): for dy in range(-thickness, thickness + 1): if dx != 0 or dy != 0: @@ -73,6 +73,7 @@ class The(commands.Cog): ---------- (discord.File): an image """ + try: image_data = await self.fetch_image(image_url) bg_data = await self.fetch_image(self.background_url)