Merge "Remove __unicode__() from CinderException"
This commit is contained in:
commit
9abb005218
|
@ -123,13 +123,6 @@ class CinderException(Exception):
|
||||||
def _should_format(self):
|
def _should_format(self):
|
||||||
return self.kwargs['message'] is None or '%(message)' in self.message
|
return self.kwargs['message'] is None or '%(message)' in self.message
|
||||||
|
|
||||||
# NOTE(tommylikehu): self.msg is already an unicode compatible object
|
|
||||||
# as the __init__ method ensures of it, and we should not be modifying
|
|
||||||
# it in any way with str(), unicode(), or six.text_type() as we would
|
|
||||||
# be preventing translations from happening.
|
|
||||||
def __unicode__(self):
|
|
||||||
return self.msg
|
|
||||||
|
|
||||||
|
|
||||||
class VolumeBackendAPIException(CinderException):
|
class VolumeBackendAPIException(CinderException):
|
||||||
message = _("Bad or unexpected response from the storage volume "
|
message = _("Bad or unexpected response from the storage volume "
|
||||||
|
|
Loading…
Reference in New Issue