fix null team

master
James Sigurðarson 2016-08-12 16:24:13 +01:00
parent 69a96d7887
commit 81e74bc7ff
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def register():
if join_team:
team_key = request.form["team_key"].strip()
t = team.get_team(key=team_key)
if not team:
if not t:
flash("This team could not be found, check your team key.")
return redirect(url_for('.register'))
else: