fix warning (and error) on querying with null key

This commit is contained in:
Glandos 2021-10-13 21:54:50 +02:00
parent e74d649196
commit 8249ae37ef

View file

@ -227,7 +227,7 @@ def authenticate(project_id=None):
form.id.data = request.args["project_id"] form.id.data = request.args["project_id"]
project_id = form.id.data project_id = form.id.data
project = Project.query.get(project_id) project = Project.query.get(project_id) if project_id is not None else None
if not project: if not project:
# If the user try to connect to an unexisting project, we will # If the user try to connect to an unexisting project, we will
# propose him a link to the creation form. # propose him a link to the creation form.