From 063d28090c3ae156727d5a80e37842b063365f5b Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 20 Dec 2023 09:19:51 -0600 Subject: [PATCH] Catch Faraday errors This client uses Faraday instead of Http --- app/services/folio_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/folio_client.rb b/app/services/folio_client.rb index 3f0fff2a2..967d7cae6 100644 --- a/app/services/folio_client.rb +++ b/app/services/folio_client.rb @@ -211,7 +211,7 @@ def institutions def ping session_token.present? - rescue HTTP::Error + rescue Faraday::Error false end