Run futures correctly

pull/175/head
bobloy 4 years ago
parent ff9610ff77
commit 8200cd9af1

@ -613,8 +613,7 @@ class Chatter(Cog):
if in_response_to is not None: if in_response_to is not None:
log.debug("learning response") log.debug("learning response")
learning_task = asyncio.create_task( await self.loop.run_in_executor(
self.loop.run_in_executor(
None, None,
partial( partial(
self.chatbot.learn_response, self.chatbot.learn_response,
@ -622,7 +621,6 @@ class Chatter(Cog):
previous_statement=in_response_to, previous_statement=in_response_to,
), ),
) )
)
replying = None replying = None
if await self.config.guild(guild).reply(): if await self.config.guild(guild).reply():
@ -637,4 +635,6 @@ class Chatter(Cog):
await ctx.send(":thinking:") await ctx.send(":thinking:")
async def check_for_kaggle(self): async def check_for_kaggle(self):
"""Check whether Kaggle is installed and configured properly"""
# TODO: This
return False return False

Loading…
Cancel
Save