diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index b9ea5ea1a07d1..f8c643919b155 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -245,7 +245,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previ try { return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix); - } catch (NotFoundException $e) { + } catch (NotFoundException | \InvalidArgumentException $e) { return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix); } }