Skip to content

Commit

Permalink
959-iiif-width-height-caching Add handler for ServerException in Isla…
Browse files Browse the repository at this point in the history
…ndora IIIF manifest generator.
  • Loading branch information
alxp committed Feb 6, 2024
1 parent ec29a45 commit 6a1c033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/islandora_iiif/src/IiifInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
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.
Expand Down Expand Up @@ -120,7 +121,7 @@ public function getImageDimensions(FileInterface $file) {
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;
Expand Down

0 comments on commit 6a1c033

Please sign in to comment.