Skip to content

Commit 50ff732

Browse files
authored
VEBT-894 - handle 404 error for 22-10203 SCO email (#20025)
* handle 404 errors * fix rubocop error
1 parent 8b6a825 commit 50ff732

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/sidekiq/education_form/send_school_certifying_officials_email.rb

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def self.sco_emails(scos)
3333

3434
def get_institution(facility_code)
3535
GI::Client.new.get_institution_details_v0({ id: facility_code }).body[:data][:attributes]
36+
rescue Common::Exceptions::RecordNotFound
37+
StatsD.increment("#{stats_key}.skipped.institution_not_approved")
38+
nil
3639
end
3740

3841
def school_changed?

0 commit comments

Comments
 (0)