diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-06-11 19:20:48 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-06-11 19:20:48 +0300 |
commit | bb81f6ca842c532fec5a599fa567522b3c8bd584 (patch) | |
tree | b6aa21ee935da9cbf5207a57ee046f17e89d3aa3 /lib | |
parent | ad390e1b7d86c9c65f19eef4d6da4f7b7b2652ad (diff) |
do not crash on failed provider
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ProviderService.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Service/ProviderService.php b/lib/Service/ProviderService.php index fd77f08..52d5143 100644 --- a/lib/Service/ProviderService.php +++ b/lib/Service/ProviderService.php @@ -111,9 +111,11 @@ class ProviderService { } $this->providerIdMustBeUnique($provider); - - $provider->loadProvider(); - $this->providers[] = $provider; + try { + $provider->loadProvider(); + $this->providers[] = $provider; + } catch (Exception $e) { + } } |