Skip to content

Commit

Permalink
return response when no old talk found, don't raise it!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed Jan 19, 2016
1 parent 047f62c commit 2a75319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions talks/old_talks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def old_talks_mappings(request, index_id):
event = Event.objects.get(id=eventList[0]);
return HttpResponsePermanentRedirect(reverse('show-event', args=[event.slug]))
else:
raise render(request, "old_talks/not_found.html")
return render(request, "old_talks/not_found.html")


def old_series_mappings(request, index_id):
Expand All @@ -29,4 +29,4 @@ def old_series_mappings(request, index_id):
return HttpResponsePermanentRedirect(reverse('show-event-group', args=[eventGroup.slug]))

else:
return render(request, "old_talks/not_found.html")
return render(request, "old_talks/not_found.html")

0 comments on commit 2a75319

Please sign in to comment.