Skip to content

Commit

Permalink
added additional exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstanley committed Dec 1, 2021
1 parent adbfea7 commit b733713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -118,6 +119,9 @@ private function validateIiifUrl($server_uri) {
catch (ClientException $e) {
return FALSE;
}
catch (ConnectException $e) {
return FALSE;
}

}

Expand Down

0 comments on commit b733713

Please sign in to comment.