From afe95b912bbc86b85eb3e11403edc63d5d3386b3 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Mon, 18 Jan 2021 00:03:15 -0500 Subject: [PATCH 1/2] Cleaned-up usused aiohttp sessions Fixes #317 --- exts/weather.py | 1 - 1 file changed, 1 deletion(-) diff --git a/exts/weather.py b/exts/weather.py index 27dfdf6..424267b 100644 --- a/exts/weather.py +++ b/exts/weather.py @@ -22,7 +22,6 @@ class WeatherCog(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot - self.session = aiohttp.ClientSession(connector=bot.qrm.connector) @commands.command(name="bandconditions", aliases=["cond", "condx", "conditions"], category=cmn.cat.weather) async def _band_conditions(self, ctx: commands.Context): From 010e161a463e503e20629b99a25913704b3fefb6 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Mon, 18 Jan 2021 00:06:11 -0500 Subject: [PATCH 2/2] Removed unused aiohttp import in weather.py --- exts/weather.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/exts/weather.py b/exts/weather.py index 424267b..dfc7384 100644 --- a/exts/weather.py +++ b/exts/weather.py @@ -10,8 +10,6 @@ the GNU General Public License, version 2. import re -import aiohttp - import discord.ext.commands as commands import common as cmn