Remove __unicode__() from ZunException

This is no longer needed in Python 3.

Change-Id: Ia1b64a4a66a876e38ed2885b543df2acc24a379d
This commit is contained in:
Yandong Xuan 2021-01-08 10:57:23 +08:00
parent 8e7e4eb986
commit 6ac7a3ee53

View File

@ -218,9 +218,6 @@ class ZunException(Exception):
def __str__(self):
return self.message
def __unicode__(self):
return self.message
def format_message(self):
if self.__class__.__name__.endswith('_Remote'):
return self.args[0]