Skip to content

Commit

Permalink
Handle Nonetype donors name
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Jan 31, 2025
1 parent d978fe1 commit bdc4d5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/update_donors.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def get_donors(donors_json_file, custom_field_label):
list_me_as_donor = field.get('dropdown', {}).get('value', '').strip().lower() == 'yes'
new_donor_name = donor['name']

if new_donor_name is None:
continue

if list_me_as_donor:
# Update the donors list with the new name
update_donors(new_donor_name, donors_json_file)
Expand Down

0 comments on commit bdc4d5f

Please sign in to comment.