Skip to content

Commit 7e1c71f

Browse files
committed
if no school match, fine me a home
1 parent aa43da4 commit 7e1c71f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

salesforce/management/commands/sync_thank_you_notes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def handle(self, *args, **options):
3030

3131
if score > 99: # found a good match on school name, use that to populate related school in SF
3232
account_id = school_list[best_match]
33+
else:
34+
capture_exception(Exception(f"Could not find a match for {school_string}"))
35+
account_id = school_list["Find Me A Home"]
3336

3437
try:
3538
response = sf.Thank_You_Note__c.create(

0 commit comments

Comments
 (0)