Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
come-nc authored and backportbot[bot] committed Apr 4, 2022
commit eaff81c831ca82cca63712f180d68a33196c3319
2 changes: 1 addition & 1 deletion lib/private/Preview/Bundled.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function extractThumbnail(File $file, $path): ?IImage {
$image->fixOrientation();

return $image;
} catch (\Exception $e) {
} catch (\Throwable $e) {
return null;
}
}
Expand Down