Merge "Remove AuthorizationFailure exception"

This commit is contained in:
Jenkins
2012-07-12 19:42:38 +00:00
committed by Gerrit Code Review
2 changed files with 0 additions and 6 deletions

View File

@@ -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."""

View File

@@ -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>')