Browse Source

959-iiif-width-height-caching Add handler for ServerException in Islandora IIIF manifest generator.

959-iiif-width-height-caching
Alexander O'Neill 11 months ago
parent
commit
6a1c033b99
  1. 3
      modules/islandora_iiif/src/IiifInfo.php

3
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;

Loading…
Cancel
Save