Skip to content

Commit

Permalink
[#1405] Removed unnecessary exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed May 11, 2023
1 parent e46eebb commit aa6cb86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/open_inwoner/plans/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from django.http import Http404, HttpResponseRedirect
from django.urls import NoReverseMatch, resolve
from django.urls.base import reverse
from django.urls.exceptions import Resolver404
from django.utils.functional import cached_property
from django.utils.translation import gettext as _
from django.views.generic import CreateView, DetailView, ListView, UpdateView
Expand Down Expand Up @@ -42,8 +41,8 @@ def dispatch(self, request, *args, **kwargs):
# in order to get the current value of actions
try:
actions_resolver = resolve(reverse("profile:action_list"))
except (NoReverseMatch, Resolver404):
raise Http404("profile application is not active or invalid path")
except NoReverseMatch:
raise Http404("profile application is not active")

profile_namespace = actions_resolver.namespace
config = profile_app.get_config(profile_namespace)
Expand Down

0 comments on commit aa6cb86

Please sign in to comment.