@ -84,7 +84,7 @@ try{
$preview->setScalingUp($scalingUp);
$preview->show();
}catch(\Exception $e) {
} catch (\Exception $e) {
\OC_Response::setStatus(500);
\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR);
\OC\Preview::showErrorPreview();
@ -35,7 +35,7 @@ class Office extends Provider {
try{
$pdf = new \imagick($absPath . '.pdf' . '[0]');
$pdf->setImageFormat('jpg');
}catch (\Exception $e) {
unlink($absPath);
unlink($absPath . '.pdf');
@ -22,7 +22,7 @@ if (extension_loaded('imagick')) {
$pdf = new \imagick($tmpPath . '[0]');
return false;
}
@ -27,7 +27,7 @@ if (extension_loaded('imagick')) {
$svg->readImageBlob($content);
$svg->setImageFormat('jpg');
}catch(\Exception $e){