diff --git a/lib/Exif.php b/lib/Exif.php index b932864a8..40eb2c173 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -399,11 +399,13 @@ public static function setFileExif(File $file, array $data): void $file->putContent(fopen($path, 'r')); // closes the handler } - // dispatch NodeWrittenEvent to trigger processing by other apps - try { - $eventDispatcher = \OCP\Server::get(IEventDispatcher::class); - $eventDispatcher->dispatchTyped(new NodeWrittenEvent($file)); - } catch (\Exception) {} + // Dispatch NodeWrittenEvent to trigger processing by other apps + try { + $eventDispatcher = \OCP\Server::get(IEventDispatcher::class); + $eventDispatcher->dispatchTyped(new NodeWrittenEvent($file)); + } catch (\Exception) { + // Not our problem + } // Touch the file, triggering a reprocess through the hook $file->touch();