From 81e74bc7ffd25c90682094379950e90f0b80ec32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Sigur=C3=B0arson?= Date: Fri, 12 Aug 2016 16:24:13 +0100 Subject: [PATCH] fix null team --- routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/users.py b/routes/users.py index 8db0c6b..8c58ef8 100644 --- a/routes/users.py +++ b/routes/users.py @@ -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: