Skip to content

Commit cd7eeb2

Browse files
committed
Added a missing guard against attribute access on None.
- Legacy-Id: 17852
1 parent b88a9cc commit cd7eeb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/mailtrigger/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def gather_doc_group_mail_list(self, **kwargs):
8484
addrs = []
8585
if 'doc' in kwargs:
8686
doc=kwargs['doc']
87-
if doc.group.features.acts_like_wg:
87+
if doc.group and doc.group.features.acts_like_wg:
8888
if doc.group.list_email:
8989
addrs.append(doc.group.list_email)
9090
return addrs

0 commit comments

Comments
 (0)