Discordio can be none
This commit is contained in:
Jeremy "EndenDragon" Zhang 2017-06-09 13:05:26 -07:00 committed by GitHub
parent a4ed38e59d
commit c528bd399b

View File

@ -199,7 +199,7 @@ def update_administrate_guild(guild_id):
db_guild.mentions_limit = request.form.get("mentions_limit", db_guild.mentions_limit)
discordio = request.form.get("discordio", db_guild.discordio)
if discordio.strip() == "":
if discordio and discordio.strip() == "":
discordio = None
db_guild.discordio = discordio
db.session.commit()