Remove __unicode__() from Venus Exception
This is no longer needed in Python 3. Change-Id: I2b020fe13b591c61b3111c3dd8b14913e09e6055
This commit is contained in:
parent
eb707af065
commit
7d21232c8b
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user