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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user