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