Skip to content

Commit 0c732d6

Browse files
committed
Guard against comparing email origin with username of None.
- Legacy-Id: 15419
1 parent 0ca9ec7 commit 0c732d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/group/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ def diff(attr, name):
968968
group.role_set.filter(name=slug).delete()
969969
for e in new:
970970
Role.objects.get_or_create(name_id=slug, email=e, group=group, person=e.person)
971-
if not e.origin or e.origin == e.person.user.username:
971+
if not e.origin or (e.person.user and e.origin == e.person.user.username):
972972
e.origin = "role: %s %s" % (group.acronym, slug)
973973
e.save()
974974

0 commit comments

Comments
 (0)