From 7d21232c8ba0bffa20a4846abb884235cc95ca97 Mon Sep 17 00:00:00 2001 From: zhangboye Date: Fri, 8 Jan 2021 17:15:18 +0800 Subject: [PATCH] Remove __unicode__() from Venus Exception This is no longer needed in Python 3. Change-Id: I2b020fe13b591c61b3111c3dd8b14913e09e6055 --- venus/exception.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/venus/exception.py b/venus/exception.py index 13ca96b..65d509b 100644 --- a/venus/exception.py +++ b/venus/exception.py @@ -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.")