Kaydet (Commit) d8fbdc17 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Markus Mohrhard

ignore orcus::sax::malformed_xml_error etc too

e.g. kde323651-1.pptx etc

Change-Id: I59319733902a0c1298094bc1541d763938334ad4
(cherry picked from commit 70049dbe)
Reviewed-on: https://gerrit.libreoffice.org/19311Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst e88019a9
......@@ -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" .-)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment