From 6a1c033b995824327a96be837b576f590c519fde Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Tue, 6 Feb 2024 12:19:48 -0400 Subject: [PATCH] 959-iiif-width-height-caching Add handler for ServerException in Islandora IIIF manifest generator. --- modules/islandora_iiif/src/IiifInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/islandora_iiif/src/IiifInfo.php b/modules/islandora_iiif/src/IiifInfo.php index 32ccedfa..66d83fe3 100644 --- a/modules/islandora_iiif/src/IiifInfo.php +++ b/modules/islandora_iiif/src/IiifInfo.php @@ -10,6 +10,7 @@ use Drupal\jwt\Authentication\Provider\JwtAuth; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\ConnectException; +use GuzzleHttp\Exception\ServerException; /** * Get IIIF related info for a given File or Image entity. @@ -120,7 +121,7 @@ class IiifInfo { return [intval($width), intval($height)]; } } - catch (ClientException | ConnectException $e) { + catch (ClientException | ConnectException | ServerException $e) { $this->logger->info("Error getting image file dimensions from IIIF server: " . $e->getMessage()); } return FALSE;