From d2ab65255f6b9ee0b35fd669f4b35348ba107dd3 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Tue, 10 Jul 2012 21:10:40 -0700 Subject: [PATCH] Remove AuthorizationFailure exception The AuthorizationFailure exception isn't used anywhere, so remove it. Fix bug 1015940. Change-Id: Ie6da74b63e3d1658c8ae26c272222f00f1209e38 --- glanceclient/common/exceptions.py | 4 ---- glanceclient/shell.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/glanceclient/common/exceptions.py b/glanceclient/common/exceptions.py index fd8ed74..d88f94b 100644 --- a/glanceclient/common/exceptions.py +++ b/glanceclient/common/exceptions.py @@ -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.""" diff --git a/glanceclient/shell.py b/glanceclient/shell.py index 0ae5bd0..4f2c005 100644 --- a/glanceclient/shell.py +++ b/glanceclient/shell.py @@ -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='', nargs='?', help='Display help for ')