Remove AuthorizationFailure exception

The AuthorizationFailure exception isn't used anywhere, so
remove it.

Fix bug 1015940.

Change-Id: Ie6da74b63e3d1658c8ae26c272222f00f1209e38
This commit is contained in:
Brian Waldon 2012-07-10 21:10:40 -07:00
parent cf8613e76d
commit d2ab65255f
2 changed files with 0 additions and 6 deletions
glanceclient

@ -7,10 +7,6 @@ class CommandError(Exception):
pass
class AuthorizationFailure(Exception):
pass
class NoTokenLookupException(Exception):
"""This form of authentication does not support looking up
endpoints from an existing token."""

@ -283,8 +283,6 @@ class OpenStackImagesShell(object):
args.func(client, args)
except exc.Unauthorized:
raise exc.CommandError("Invalid OpenStack Identity credentials.")
except exc.AuthorizationFailure:
raise exc.CommandError("Unable to authorize user")
@utils.arg('command', metavar='<subcommand>', nargs='?',
help='Display help for <subcommand>')