From fef7ec4c9477cda35029386fd8c58fe119e6d690 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 Jul 2018 23:33:07 +0200 Subject: [PATCH] this might work --- discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index 0049f25f..bf092660 100644 --- a/discordbot.py +++ b/discordbot.py @@ -279,7 +279,7 @@ def requires_voice_client(func): def requires_rygdb(func, optional=False): async def new_func(channel: discord.Channel, author: discord.Member, params: typing.List[str], *args, **kwargs): - session = await loop.run_in_executor(executor, db.Session) + session = await loop.run_in_executor(executor, db.Session.__init__) dbuser = await loop.run_in_executor(executor, session.query(db.Discord) .filter_by(discord_id=author.id)