Ignore errors when searching for bundled preview

When an odt file is xml and not zip, it would throw a ValueError.
It will now just ignore this file and return null for the preview.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-02-28 15:40:33 +01:00 committed by backportbot[bot]
parent 0ab5daf9df
commit eaff81c831

View file

@ -46,7 +46,7 @@ abstract class Bundled extends ProviderV2 {
$image->fixOrientation();
return $image;
} catch (\Exception $e) {
} catch (\Throwable $e) {
return null;
}
}