Private
Public Access
1
0

raise Http404 instead of return Http404

This commit is contained in:
Sander Roosendaal
2020-06-24 08:13:54 +02:00
parent ce51bbc26c
commit 766cd2e16d

View File

@@ -71,7 +71,7 @@ def course_map_view(request,id=0):
try:
course = GeoCourse.objects.get(id=id)
except GeoCourse.DoesNotExist:
return Http404("Course doesn't exist")
raise Http404("Course doesn't exist")
script,div = course_map(course)
@@ -246,7 +246,7 @@ def course_view(request,id=0):
try:
course = GeoCourse.objects.get(id=id)
except GeoCourse.DoesNotExist:
return Http404("Course doesn't exist")
raise Http404("Course doesn't exist")
r = getrower(request.user)
@@ -283,7 +283,7 @@ def standard_view(request,id=0):
try:
collection = StandardCollection.objects.get(id=id)
except StandardCollection.DoesNotExist:
return Http404("Standard Collection does not exist")
raise Http404("Standard Collection does not exist")
r = getrower(request.user)