Browse Source

added additional iiif config exception (#857)

pull/860/head
Alan Stanley 3 years ago committed by GitHub
parent
commit
4f45cb8c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php

4
modules/islandora_iiif/src/Form/IslandoraIIIFConfigForm.php

@ -8,6 +8,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Utility\UrlHelper; use Drupal\Component\Utility\UrlHelper;
use GuzzleHttp\ClientInterface; use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
@ -118,6 +119,9 @@ class IslandoraIIIFConfigForm extends ConfigFormBase {
catch (ClientException $e) { catch (ClientException $e) {
return FALSE; return FALSE;
} }
catch (ConnectException $e) {
return FALSE;
}
} }

Loading…
Cancel
Save