pylint is being pedantic
This commit is contained in:
parent
cf1fae6af8
commit
32e4f7718e
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class LoginWith2FA(View):
|
||||||
"""Check 2FA code and allow/disallow login"""
|
"""Check 2FA code and allow/disallow login"""
|
||||||
try:
|
try:
|
||||||
user = models.User.objects.get(username=request.session["2fa_user"])
|
user = models.User.objects.get(username=request.session["2fa_user"])
|
||||||
except:
|
except Exception:
|
||||||
request.session["2fa_auth_time"] = 0
|
request.session["2fa_auth_time"] = 0
|
||||||
return HttpResponseBadRequest("Invalid user")
|
return HttpResponseBadRequest("Invalid user")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue