mirror of
https://github.com/simple-login/app.git
synced 2025-10-06 05:17:41 +08:00
handle case where highlight_alias_id is not a number
This commit is contained in:
parent
f0b46c1887
commit
b09bb42b2d
1 changed files with 7 additions and 1 deletions
|
@ -57,7 +57,13 @@ def index():
|
||||||
|
|
||||||
highlight_alias_id = None
|
highlight_alias_id = None
|
||||||
if request.args.get("highlight_alias_id"):
|
if request.args.get("highlight_alias_id"):
|
||||||
|
try:
|
||||||
highlight_alias_id = int(request.args.get("highlight_alias_id"))
|
highlight_alias_id = int(request.args.get("highlight_alias_id"))
|
||||||
|
except ValueError:
|
||||||
|
LOG.warning(
|
||||||
|
"highlight_alias_id must be a number, received %s",
|
||||||
|
request.args.get("highlight_alias_id"),
|
||||||
|
)
|
||||||
|
|
||||||
# User generates a new email
|
# User generates a new email
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
Loading…
Add table
Reference in a new issue