Correct murano reraising of exception

When an exception was caught and rethrown, it should call 'raise'
without any arguments because it shows the place where an
exception occured initially instead of place where
the exception re-raised 685

Change-Id: I9cf6a8e2b6350eec2e010894b6a27f792e3f4368
This commit is contained in:
gengchc2 2016-12-01 17:55:31 +08:00
parent 4978f34055
commit a012e91a63
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class CueException(Exception):
try:
message = self.message % kwargs
except Exception as e:
except Exception:
# kwargs doesn't match a variable in the message
# log the issue and the kwargs
LOG.exception(_LE('Exception in string format operation'))
@ -83,7 +83,7 @@ class CueException(Exception):
LOG.error("%s: %s" % (name, value))
if CONF.fatal_exception_format_errors:
raise e
raise
else:
# at least get the core message out if something happened
message = self.message