Skip to content

Commit d70f327

Browse files
committed
catch AttributeError on_guild_join
Signed-off-by: RedTeaDev <[email protected]>
1 parent 82118f5 commit d70f327

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

teapot/events.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ def on_guild_join(bot):
4848
@bot.event
4949
async def on_guild_join(ctx):
5050
if teapot.config.storage_type() == "mysql":
51-
teapot.database.create_guild_table(ctx.guild)
51+
try:
52+
teapot.database.create_guild_table(ctx.guild)
53+
except AttributeError as ignored:
54+
pass
55+
5256

5357

5458
def message_send(bot):

0 commit comments

Comments
 (0)