diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-08-27 18:00:34 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-08-27 18:00:34 +0300 |
commit | d0a64aa93da05be5351fc1798d093955652ae9c7 (patch) | |
tree | 1f261b72043c6a4b07019cd727d3b722201e546c /lib | |
parent | 9e87bfbae41ac1317af7f9c1226cb7ff9483b06a (diff) |
destruct document on exception
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/IndexService.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/IndexService.php b/lib/Service/IndexService.php index 3e2567a..511288b 100644 --- a/lib/Service/IndexService.php +++ b/lib/Service/IndexService.php @@ -300,7 +300,8 @@ class IndexService { ); $this->filterDocumentBeforeIndex($document); - } catch (NotIndexableDocumentException $e) { + } catch (Exception $e) { + $document->__destruct(); continue; } |