Added a missing guard against attribute access on None.
- Legacy-Id: 17852
This commit is contained in:
parent
b88a9ccae0
commit
cd7eeb238f
|
@ -84,7 +84,7 @@ class Recipient(models.Model):
|
||||||
addrs = []
|
addrs = []
|
||||||
if 'doc' in kwargs:
|
if 'doc' in kwargs:
|
||||||
doc=kwargs['doc']
|
doc=kwargs['doc']
|
||||||
if doc.group.features.acts_like_wg:
|
if doc.group and doc.group.features.acts_like_wg:
|
||||||
if doc.group.list_email:
|
if doc.group.list_email:
|
||||||
addrs.append(doc.group.list_email)
|
addrs.append(doc.group.list_email)
|
||||||
return addrs
|
return addrs
|
||||||
|
|
Loading…
Reference in a new issue