Quiz system permissions fix

This commit is contained in:
2020-11-10 00:52:54 +01:00
parent 714093fd34
commit 6e6e3a1b34
4 changed files with 42 additions and 24 deletions

View File

@@ -133,7 +133,7 @@ class PlayerLink(commands.Cog):
except SQLInsertError:
await message.edit(embed=create_embed(ctx.author, arg, timer))
finally:
dbLinker.closeconnections()
dbLinker.close()
else:
# this stops the timer task
timer.stop()
@@ -159,7 +159,7 @@ class PlayerLink(commands.Cog):
except PlayerNotLinked:
await ctx.send("Player not linked!")
finally:
dbLinker.closeconnections()
dbLinker.close()
def setup(client):