From b1981ee5a89bd5d29444471ce29bdda52f2ee053 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 13 Aug 2020 12:54:54 +0100 Subject: [PATCH] Closing session after updating stats to discord.bots.gg --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index d6a1a314..8c1f2645 100644 --- a/main.py +++ b/main.py @@ -98,6 +98,7 @@ async def post_bot_stats(): data={"guildCount": {len(client.guilds)}, "Content-Type": "application/json"}, headers={'Authorization': disc_bots_gg_auth}) + await session.close() @tasks.loop(minutes=10, reconnect=True)