Skip to content

Commit 8d5006a

Browse files
committed
Fix another crash bug on live - don't display charter link in email to
Secretariat if the RG has no charter - Legacy-Id: 7880
1 parent 0078057 commit 8d5006a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/group/mails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def email_secretariat(request, group, subject, text):
2323
dict(text=text,
2424
group=group,
2525
group_url=settings.IDTRACKER_BASE_URL + urlreverse('group_charter', kwargs=dict(group_type=group.type_id, acronym=group.acronym)),
26-
charter_url=settings.IDTRACKER_BASE_URL + urlreverse('doc_view', kwargs=dict(name=group.charter.name)),
26+
charter_url=settings.IDTRACKER_BASE_URL + urlreverse('doc_view', kwargs=dict(name=group.charter.name)) if group.charter else "[no charter]",
2727
)
2828
)
2929

0 commit comments

Comments
 (0)