diff --git a/lib/Alchemy/Phrasea/Border/File.php b/lib/Alchemy/Phrasea/Border/File.php index 0454831856..4f364e5b95 100644 --- a/lib/Alchemy/Phrasea/Border/File.php +++ b/lib/Alchemy/Phrasea/Border/File.php @@ -129,7 +129,14 @@ class File $metadatas->add(new Metadata(TagFactory::getFromRDFTagname($tagname), $value)); } - $writer->write($this->getFile()->getRealPath(), $metadatas); + /** + * PHPExiftool throws exception on some files not supported + */ + try { + $writer->write($this->getFile()->getRealPath(), $metadatas); + } catch (\PHPExiftool\Exception\Exception $e) { + + } } $writer = $reader = $metadatas = null;