summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-28 15:40:33 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-04-14 13:38:29 +0200
commit07770fce996ba1b0d6444cffb85ec23e2e46d505 (patch)
treea9efa07afc17854d335df349e650432b6df0c82f
parent04c8cf4cad37f32cffc127de3bf18fcb5f2f2d04 (diff)
downloadnextcloud-server-07770fce996ba1b0d6444cffb85ec23e2e46d505.tar.gz
nextcloud-server-07770fce996ba1b0d6444cffb85ec23e2e46d505.zip
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>
-rw-r--r--lib/private/Preview/Bundled.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Bundled.php b/lib/private/Preview/Bundled.php
index f026d3259f5..6b5a8aa2d12 100644
--- a/lib/private/Preview/Bundled.php
+++ b/lib/private/Preview/Bundled.php
@@ -46,7 +46,7 @@ abstract class Bundled extends ProviderV2 {
$image->fixOrientation();
return $image;
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
return null;
}
}