summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorMorgan Fainberg <m@metacloud.com>2013-08-18 22:17:21 -0700
committerMorgan Fainberg <m@metacloud.com>2013-08-30 01:15:57 +0000
commitf9572140bcd7f871a3f1c1a1b06181c0a61cbf23 (patch)
tree7517b9fd3f700d1c2ecf3bcf453e229222ced809 /keystoneclient/utils.py
parent0bf1607c733c6342c59aa5b63db217fb8c86ee55 (diff)
downloadpython-keystoneclient-f9572140bcd7f871a3f1c1a1b06181c0a61cbf23.tar.gz
Fixing potential NameErrors
Fixing a couple locations that could potentially raise NameErrors instead of intended exceptions. These were found by looking at flake8 F821 (undefined name) errors. Added in unit tests to verify NameErrors would not be raised. Change-Id: I8619cb0be495b814335a5aea23daca025484d3c6
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index db3ce74..479f7c0 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -108,7 +108,7 @@ def find_resource(manager, name_or_id):
msg = ("Multiple %s matches found for '%s', use an ID to be more"
" specific." % (manager.resource_class.__name__.lower(),
name_or_id))
- raise exc.CommandError(msg)
+ raise exceptions.CommandError(msg)
def unauthenticated(f):