Remove __unicode__() from ZunException
This is no longer needed in Python 3. Change-Id: Ia1b64a4a66a876e38ed2885b543df2acc24a379d
This commit is contained in:
parent
8e7e4eb986
commit
6ac7a3ee53
@ -218,9 +218,6 @@ class ZunException(Exception):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.message
|
return self.message
|
||||||
|
|
||||||
def __unicode__(self):
|
|
||||||
return self.message
|
|
||||||
|
|
||||||
def format_message(self):
|
def format_message(self):
|
||||||
if self.__class__.__name__.endswith('_Remote'):
|
if self.__class__.__name__.endswith('_Remote'):
|
||||||
return self.args[0]
|
return self.args[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user