From b598118bbaa4b585b18d238bffb6400304b7ecf8 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sat, 5 May 2018 20:59:49 -0800 Subject: [PATCH] Await aio_session close --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 472f01a..1488358 100644 --- a/bot.py +++ b/bot.py @@ -79,7 +79,7 @@ class Submitter(commands.Bot): async def close(self): await super().close() - self.aio_session.close() # aiohttp is drunk and can't decide if it's a coro or not + await self.aio_session.close() bot = Submitter(description=description, case_insensitive=True)