Skip to content

Commit

Permalink
VEBT-894 - handle 404 error for 22-10203 SCO email (#20025)
Browse files Browse the repository at this point in the history
* handle 404 errors

* fix rubocop error
  • Loading branch information
GcioGregg authored Dec 30, 2024
1 parent 8b6a825 commit 50ff732
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def self.sco_emails(scos)

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

def school_changed?
Expand Down

0 comments on commit 50ff732

Please sign in to comment.