From 0a695f9cea906a14168ba84ed41b9fc759213c87 Mon Sep 17 00:00:00 2001 From: tawoe Date: Fri, 13 Oct 2023 08:40:04 +0200 Subject: [PATCH] code clean --- apimanager/consumers/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apimanager/consumers/views.py b/apimanager/consumers/views.py index 7f8336f1..6b539149 100644 --- a/apimanager/consumers/views.py +++ b/apimanager/consumers/views.py @@ -187,8 +187,6 @@ def get_redirect_url(self, *args, **kwargs): messages.success(self.request, self.success) except APIError as err: messages.error(self.request, err) - except APIError as err: - messages.error(self.request, err) urlpath = self.request.POST.get('next', reverse('consumers-index')) query = self.request.GET.urlencode()