Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise Http404 in django auth view when the backend is not found #83

Merged
merged 1 commit into from
Nov 13, 2013

Conversation

despawnerer
Copy link
Contributor

Currently, /login/non-existing-backend/ raises ValueError which presents itself as a 500 error to the user, which isn't nice. 404 is better.

omab added a commit that referenced this pull request Nov 13, 2013
Raise Http404 in django auth view when the backend is not found
@omab omab merged commit 63f2775 into omab:master Nov 13, 2013
@omab
Copy link
Owner

omab commented Nov 13, 2013

Thanks! I'll introduce a new exception type to flag the backend error and catch that one instead of ValueError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants