Skip to content

Commit 34825fc

Browse files
committed
Fixed exception when creating log message when setting a document shepherd to None.
- Legacy-Id: 5730
1 parent 795f91a commit 34825fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/views_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def edit_shepherd(request, name):
965965

966966
login = request.user.get_profile()
967967
c = DocEvent(type="added_comment", doc=doc, by=login)
968-
c.desc = "Document shepherd changed to "+doc.shepherd.name
968+
c.desc = "Document shepherd changed to "+ (doc.shepherd.name if doc.shepherd else "(None)")
969969
c.save()
970970

971971
return HttpResponseRedirect(urlreverse('doc_view', kwargs={'name': doc.name}))

0 commit comments

Comments
 (0)