diff options
author | 2019-04-21 20:03:52 +1000 | |
---|---|---|
committer | 2019-04-21 20:03:52 +1000 | |
commit | 925930c9010dc59f52bb78eda0640e1a3e21626c (patch) | |
tree | 803a6442993b5651f892d917d76bfbb0a7b2450a | |
parent | Fix rank command. (diff) |
Close db after role assignment.
-rw-r--r-- | bot/seasons/easter/egg_hunt/cog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/easter/egg_hunt/cog.py b/bot/seasons/easter/egg_hunt/cog.py index 5120497b..30d20f30 100644 --- a/bot/seasons/easter/egg_hunt/cog.py +++ b/bot/seasons/easter/egg_hunt/cog.py @@ -55,6 +55,8 @@ async def assign_team(user: discord.Member) -> discord.Member: else: new_team = Roles.blurple + db.close() + log.debug(f"Assigned role {new_team} to {user}.") await user.add_roles(new_team) |