mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-04-01 07:59:39 +00:00
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"""
|
||||
try:
|
||||
user = models.User.objects.get(username=request.session["2fa_user"])
|
||||
except:
|
||||
except Exception:
|
||||
request.session["2fa_auth_time"] = 0
|
||||
return HttpResponseBadRequest("Invalid user")
|
||||
|
||||
|
|
Loading…
Reference in a new issue