mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
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:
parent
0ab5daf9df
commit
eaff81c831
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ abstract class Bundled extends ProviderV2 {
|
|||
$image->fixOrientation();
|
||||
|
||||
return $image;
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue