diff options
Diffstat (limited to 'keystone/service.py')
-rw-r--r-- | keystone/service.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/keystone/service.py b/keystone/service.py index 6d812b7e..1cb455dd 100644 --- a/keystone/service.py +++ b/keystone/service.py @@ -17,8 +17,6 @@ import uuid import routes -import webob.dec -import webob.exc from keystone import catalog from keystone import exception @@ -277,7 +275,7 @@ class TokenController(wsgi.Application): # If the user is disabled don't allow them to authenticate if not user_ref.get('enabled', True): - raise webob.exc.HTTPForbidden('User has been disabled') + raise exception.Forbidden(message='User has been disabled') except AssertionError as e: raise exception.Unauthorized(e.message) |