Skip to content

Commit 737996f

Browse files
committed
Return 404 not found when the wg acronym given as part of a wg charter URL can't be found.
- Legacy-Id: 1686
1 parent 849e92d commit 737996f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/wginfo/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def wg_dir(request):
2424
return render_to_response('wginfo/wg-dir.html', {'wg_list': wgs}, RequestContext(request))
2525

2626
def collect_wg_info(acronym):
27-
wg = (IETFWG.objects.get(group_acronym__acronym=acronym))
27+
wg = get_object_or_404(IETFWG, group_acronym__acronym=acronym)
2828
return {'wg': wg}
2929

3030
def wg_charter(request, wg="1"):

0 commit comments

Comments
 (0)