From b7337136105cea011a230398bc87494c1e04d245 Mon Sep 17 00:00:00 2001 From: ajstanley Date: Wed, 1 Dec 2021 16:40:34 -0400 Subject: [PATCH] added additional exception --- modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php b/modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php index aecb77064..dc750a5a9 100644 --- a/modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php +++ b/modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php @@ -8,6 +8,7 @@ use Drupal\Component\Utility\UrlHelper; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ClientException; +use GuzzleHttp\Exception\ConnectException; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -118,6 +119,9 @@ private function validateIiifUrl($server_uri) { catch (ClientException $e) { return FALSE; } + catch (ConnectException $e) { + return FALSE; + } }