Skip to content

Commit

Permalink
fix: Don't stop remove if resource is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-K committed Dec 3, 2024
1 parent d06b6b4 commit e65e8f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Domain/Repository/DatabaseStorageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ public function remove($entry, bool $removeAttachedResources = false): void
try {
$this->resourceManager->deleteResource($property);
} catch (EntityNotFoundException $exception) {
// Maybe the entry is already deleted and therefore not found
return;
// Maybe the entry is already deleted and therefore not found.
// Therefore we will ignore this exception and continue
// with the next property.
continue;
}
}
}
Expand Down

0 comments on commit e65e8f0

Please sign in to comment.