Browse Source

added additional exception

pull/857/head
ajstanley 3 years ago
parent
commit
b733713610
  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