Skip to content

Commit e493377

Browse files
committed
Fixed a problem with the code to update missing person record association in a meeting registration record.
- Legacy-Id: 18044
1 parent 595dcb7 commit e493377

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/ietfauth/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,9 @@ def scope_registration(self):
255255
# later.
256256
email_list = person.email_set.values_list('address')
257257
reg = MeetingRegistration.objects.filter(email__in=email_list, meeting=meeting).first()
258-
reg.person = person
259-
reg.save()
258+
if reg:
259+
reg.person = person
260+
reg.save()
260261
info = {}
261262
if reg:
262263
# maybe register attendence if logged in to follow a meeting

0 commit comments

Comments
 (0)