Skip to content
Snippets Groups Projects
Commit fafb8f5f authored by Fabian Krüger's avatar Fabian Krüger
Browse files

caught exception

parent a4401de5
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ def login(request):
ident_type = request.POST.get('identifier_type')
try:
UserLogic.login(request, identifier, ident_type)
except Exception: # TODO: Specify exceptions
except (UserIdentifierNotExists, DisabledIdentifier):
return HttpResponseRedirect(reverse("index"))
return HttpResponseRedirect(reverse("buy"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment