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>
pull/31380/head
Côme Chilliet 2022-02-28 15:40:33 +07:00
parent c203bc71ad
commit 13c11208d4
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 1 additions and 1 deletions

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