remove __unicode__
This is no longer needed in Python 3. Change-Id: Iea04bd4454d8da92b00eff93366c457c04c3bb27
This commit is contained in:
@@ -95,9 +95,6 @@ class VenusException(Exception):
|
|||||||
def _should_format(self):
|
def _should_format(self):
|
||||||
return self.kwargs['message'] is None or '%(message)' in self.message
|
return self.kwargs['message'] is None or '%(message)' in self.message
|
||||||
|
|
||||||
def __unicode__(self):
|
|
||||||
return str(self.msg)
|
|
||||||
|
|
||||||
|
|
||||||
class NotAuthorized(VenusException):
|
class NotAuthorized(VenusException):
|
||||||
message = _("Not authorized.")
|
message = _("Not authorized.")
|
||||||
|
Reference in New Issue
Block a user