summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-11 21:43:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-11 21:43:18 +0100
commit70049dbeb286cb0613526e1c3c0318d32a446e58 (patch)
treee8a391aac508b2dcdb56113c9cb5663b25368234
parent50529b713221548d9aa7447d125b734b8de44fa0 (diff)
ignore orcus::sax::malformed_xml_error etc too
e.g. kde323651-1.pptx etc Change-Id: I59319733902a0c1298094bc1541d763938334ad4
-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 0449a488d3cd..a637d0890f54 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" .-)