Skip to content

Commit

Permalink
Handle empty and nonetype donors name
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Jan 31, 2025
1 parent bdc4d5f commit 2f0df42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_donors.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ 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:
if not new_donor_name:
continue

if list_me_as_donor:
Expand Down

0 comments on commit 2f0df42

Please sign in to comment.