Commit 6a4bce4f by Kevin McDermott

Assert properly.

parent 120b239c
...@@ -79,7 +79,7 @@ if getattr(settings, 'OPENID_USE_AS_ADMIN_LOGIN', False): ...@@ -79,7 +79,7 @@ if getattr(settings, 'OPENID_USE_AS_ADMIN_LOGIN', False):
return views.default_render_failure( return views.default_render_failure(
request, "User %s does not have admin access." request, "User %s does not have admin access."
% request.user.username) % request.user.username)
assert "Unknown Error: %s" % error_message assert error_message, "Unknown Error: %s" % error_message
else: else:
# Redirect to openid login path, # Redirect to openid login path,
return HttpResponseRedirect( return HttpResponseRedirect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment