From d1bcbb05fad91b4883d19ad718443b5b02ef78c8 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 15 Aug 2013 08:41:42 -0400 Subject: [PATCH] Log but ignore exceptions during cover processing. --- module/VuFind/src/VuFind/Cover/Loader.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Cover/Loader.php b/module/VuFind/src/VuFind/Cover/Loader.php index ac62e392141..ac69dda6e3e 100644 --- a/module/VuFind/src/VuFind/Cover/Loader.php +++ b/module/VuFind/src/VuFind/Cover/Loader.php @@ -264,8 +264,15 @@ class Loader implements \Zend\Log\LoggerAwareInterface $provider = explode(':', trim($provider)); $func = trim($provider[0]); $key = isset($provider[1]) ? trim($provider[1]) : null; - if ($this->$func($key)) { - return true; + try { + if ($this->$func($key)) { + return true; + } + } catch (\Exception $e) { + $this->debug( + get_class($e) . ' during processing of ' . $func . ': ' + . $e->getMessage() + ); } } } -- GitLab