Abort 404 if dbguild not here

This commit is contained in:
Jeremy Zhang 2018-10-09 21:23:53 +00:00
parent 0cb1f0646e
commit b8735d4082

View File

@ -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"],