raise Http404 instead of return Http404
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user