From e138ae472b1d3895298efa9e1c682bed30047c10 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Sun, 18 Aug 2013 22:17:21 -0700 Subject: [PATCH] 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 --- keystoneclient/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index db3ce74a..479f7c01 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):