Skip to content

Commit 07770fc

Browse files
come-ncblizzz
authored andcommitted
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>
1 parent 04c8cf4 commit 07770fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Preview/Bundled.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function extractThumbnail(File $file, $path): ?IImage {
4646
$image->fixOrientation();
4747

4848
return $image;
49-
} catch (\Exception $e) {
49+
} catch (\Throwable $e) {
5050
return null;
5151
}
5252
}

0 commit comments

Comments
 (0)