Merge "Can not get a valid error message when executing zun attach error"

This commit is contained in:
Zuul 2018-01-12 07:40:56 +00:00 committed by Gerrit Code Review
commit fd7343b33c

View File

@ -201,7 +201,7 @@ class ZunException(Exception):
self.message = message
try:
self.message = self.message % kwargs
self.message = str(self.message) % kwargs
except KeyError:
# kwargs doesn't match a variable in the message
# log the issue and the kwargs