Remove __unicode__() from CinderException

This is no longer needed in Python 3.

Change-Id: Ie04d6dbdb9d18047d9167f85b4346d15babca4f3
This commit is contained in:
Eric Harney 2021-01-06 09:13:36 -05:00
parent 9c1b4f40ba
commit 723f1a242a
1 changed files with 0 additions and 7 deletions

View File

@ -123,13 +123,6 @@ class CinderException(Exception):
def _should_format(self):
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):
message = _("Bad or unexpected response from the storage volume "