Skip to content

Commit

Permalink
Meal prefs might be null #222
Browse files Browse the repository at this point in the history
meal prefs might be null for recs
  • Loading branch information
connorkm2 authored Oct 31, 2024
2 parents f3b4ea8 + 6d96751 commit e5d8c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/attendee_groups/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def process_emails(recs, group_id, name):
email = attendee['email']
if (email not in processed_emails):
processed_emails.add(email)
if attendee['meal_preferences']['seating_preference'] != group_id:
if ('meal_preferences' not in attendee) or attendee['meal_preferences']['seating_preference'] != group_id:
table.put_item(
Item={
'PK': "GROUPREC#{}".format(group_id),
Expand Down

0 comments on commit e5d8c93

Please sign in to comment.