Await aio_session close

This commit is contained in:
Dusty.P 2018-05-05 20:59:49 -08:00
parent 9fba3f1a76
commit b598118bba

2
bot.py
View File

@ -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)