File tree Expand file tree Collapse file tree
lib/private/Blurhash/Listener Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535use OCP \Files \NotFoundException ;
3636use OCP \Files \NotPermittedException ;
3737use OCP \FilesMetadata \AMetadataEvent ;
38+ use OCP \FilesMetadata \Exceptions \FilesMetadataNotFoundException ;
3839use OCP \FilesMetadata \Event \MetadataBackgroundEvent ;
3940use OCP \FilesMetadata \Event \MetadataLiveEvent ;
4041use OCP \IPreview ;
@@ -74,8 +75,12 @@ public function handle(Event $event): void {
7475
7576 $ currentEtag = $ file ->getEtag ();
7677 $ metadata = $ event ->getMetadata ();
77- if ($ metadata ->getEtag ('blurhash ' ) === $ currentEtag ) {
78- return ;
78+
79+ try {
80+ if ($ metadata ->getEtag ('blurhash ' ) === $ currentEtag ) {
81+ return ;
82+ }
83+ } catch (FilesMetadataNotFoundException ) {
7984 }
8085
8186 // too heavy to run on the live thread, request a rerun as a background job
You can’t perform that action at this time.
0 commit comments