Merge "Can not get a valid error message when executing zun attach error"
This commit is contained in:
commit
fd7343b33c
@ -201,7 +201,7 @@ class ZunException(Exception):
|
|||||||
self.message = message
|
self.message = message
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.message = self.message % kwargs
|
self.message = str(self.message) % kwargs
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# kwargs doesn't match a variable in the message
|
# kwargs doesn't match a variable in the message
|
||||||
# log the issue and the kwargs
|
# log the issue and the kwargs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user