Skip to content

Commit

Permalink
fix: 404 for unknown publisher page instead of 500
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Jan 28, 2025
1 parent 10a1c40 commit 1ebdfab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iati_dashboard/ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def headlines_files(request):


def headlines_publisher_detail(request, publisher=None):
if publisher not in publisher_name:
raise Http404("Publisher does not exist")

template = loader.get_template("publisher.html")

context = _make_context("publishers")
Expand Down

0 comments on commit 1ebdfab

Please sign in to comment.