summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-11 21:43:02 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-12 10:01:05 +0000
commitd8fbdc178148d8239be3b7bf3ad2b3a789320bb1 (patch)
tree30e4b03b39872ba51bdb299a088452938d10aaba /filter
parente88019a9c1d6fcaa3d116192ad392ed1fdad2cd2 (diff)
ignore orcus::sax::malformed_xml_error etc too
e.g. kde323651-1.pptx etc Change-Id: I59319733902a0c1298094bc1541d763938334ad4 (cherry picked from commit 70049dbeb286cb0613526e1c3c0318d32a446e58) Reviewed-on: https://gerrit.libreoffice.org/19311 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/typedetection.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index 0a457e265bdc..4d166161f6d5 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -1040,14 +1040,14 @@ OUString TypeDetection::impl_askDetectService(const OUString& sDet
sDeepType = xDetector->detect(lDescriptor);
rDescriptor << lDescriptor;
}
- catch(const css::uno::Exception&)
- {
- // We should ignore errors here.
- // Thrown exceptions mostly will end in crash recovery ...
- // But might be we find another deep detection service which can detect the same
- // document without a problem .-)
- sDeepType.clear();
- }
+ catch (...)
+ {
+ // We should ignore errors here.
+ // Thrown exceptions mostly will end in crash recovery ...
+ // But might be we find another deep detection service which can detect the same
+ // document without a problem .-)
+ sDeepType.clear();
+ }
// seek to 0 is an optional feature to be more robust against
// "simple implemented detect services" .-)