Remove __unicode__() from Venus Exception

This is no longer needed in Python 3.

Change-Id: I2b020fe13b591c61b3111c3dd8b14913e09e6055
This commit is contained in:
zhangboye 2021-01-08 17:15:18 +08:00
parent eb707af065
commit 7d21232c8b

View File

@ -95,9 +95,6 @@ class VenusException(Exception):
def _should_format(self):
return self.kwargs['message'] is None or '%(message)' in self.message
def __unicode__(self):
return str(self.msg)
class NotAuthorized(VenusException):
message = _("Not authorized.")