mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
fix warning (and error) on querying with null key
This commit is contained in:
parent
e74d649196
commit
8249ae37ef
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue