Fix pep8 F821 error

Change-Id: Idef9c90b57b67fae2e896de00cc8f647c238cae8
This commit is contained in:
zhurong 2019-01-09 13:36:47 +08:00
parent c023d63562
commit 95f9da9cd8
3 changed files with 4 additions and 4 deletions

View File

@ -280,9 +280,9 @@ class MuranoClass(dsl_types.MuranoClass, MuranoType, dslmeta.MetaProvider):
for name in self.all_method_names:
try:
yield self.find_single_method(name)
except exceptions.AmbiguousMethodName as e:
except exceptions.AmbiguousMethodName:
def func(*args, **kwargs):
raise e
raise
yield murano_method.MuranoMethod(
self, name, func, ephemeral=True)

View File

@ -53,7 +53,7 @@ class MistralClient(object):
def _create_client(region):
if not mistralcli:
LOG.warning("Mistral client is not available")
raise mistral_import_error
raise ImportError("Import mistralcliet error")
mistral_settings = CONF.mistral

View File

@ -54,7 +54,7 @@ class ModelPolicyEnforcer(object):
def _create_client(self):
if not congress_client:
# congress client was not imported
raise congress_client_import_error
raise ImportError("Import congresscliet error")
return congress_client.Client(
**auth_utils.get_session_client_parameters(
service_type='policy',