Fix usage of Http404 in admin page

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2008-10-24 10:23:25 -07:00
parent 61b4e78255
commit 4d3e7dfb57
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def admin_user(request, email):
"""/admin/user/email@address.com - edit this user"""
account = models.Account.get_account_for_email(email)
if not account:
raise Http404
return http.HttpResponseNotFound("No such user")
referrer = request.META.get('HTTP_REFERER', '/admin/users')
state = {
'account': account,