From 97b531e205e757f47de1373820ce63574178c1cf Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 29 May 2021 17:53:52 +0200 Subject: [PATCH] add exception handler --- core/Cache/SymfonyCacheManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Cache/SymfonyCacheManager.php b/core/Cache/SymfonyCacheManager.php index 4857aa5..5504be8 100644 --- a/core/Cache/SymfonyCacheManager.php +++ b/core/Cache/SymfonyCacheManager.php @@ -11,6 +11,7 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\HttpClient\Exception\ClientException; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\HttpClient\Exception\TransportException; /** * class SymfonyCacheManager. @@ -49,6 +50,7 @@ class SymfonyCacheManager // Hack: used to regenerate cache of url generator $this->httpClient->request('POST', $pingUrl); } catch (ClientException $e) { + } catch (TransportException $e) { } }