Skip to content

Commit aa6cb86

Browse files
committed
[#1405] Removed unnecessary exception
1 parent e46eebb commit aa6cb86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/open_inwoner/plans/views.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.http import Http404, HttpResponseRedirect
77
from django.urls import NoReverseMatch, resolve
88
from django.urls.base import reverse
9-
from django.urls.exceptions import Resolver404
109
from django.utils.functional import cached_property
1110
from django.utils.translation import gettext as _
1211
from django.views.generic import CreateView, DetailView, ListView, UpdateView
@@ -42,8 +41,8 @@ def dispatch(self, request, *args, **kwargs):
4241
# in order to get the current value of actions
4342
try:
4443
actions_resolver = resolve(reverse("profile:action_list"))
45-
except (NoReverseMatch, Resolver404):
46-
raise Http404("profile application is not active or invalid path")
44+
except NoReverseMatch:
45+
raise Http404("profile application is not active")
4746

4847
profile_namespace = actions_resolver.namespace
4948
config = profile_app.get_config(profile_namespace)

0 commit comments

Comments
 (0)