remove __unicode__

This is no longer needed in Python 3.

Change-Id: Iea04bd4454d8da92b00eff93366c457c04c3bb27
This commit is contained in:
xuanyandong 2021-01-07 19:19:09 +08:00
parent eb707af065
commit d7bee4fbbc

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.")