mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 03:15:24 +02:00
Abort 404 if dbguild not here
This commit is contained in:
@ -66,6 +66,8 @@ def guild_embed(guild_id):
|
||||
if check_guild_existance(guild_id):
|
||||
guild = redisqueue.get_guild(guild_id)
|
||||
dbguild = db.session.query(Guilds).filter(Guilds.guild_id == guild_id).first()
|
||||
if not dbguild:
|
||||
abort(404)
|
||||
guild_dict = {
|
||||
"id": guild["id"],
|
||||
"name": guild["name"],
|
||||
|
Reference in New Issue
Block a user