diff --git a/Classes/Service/TaxonomyService.php b/Classes/Service/TaxonomyService.php index e10d17a..ff69f24 100644 --- a/Classes/Service/TaxonomyService.php +++ b/Classes/Service/TaxonomyService.php @@ -36,9 +36,7 @@ use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry; use Neos\Flow\Annotations as Flow; -use Neos\Neos\Domain\Exception\LiveWorkspaceIsMissing; use Neos\Neos\FrontendRouting\NodeAddressFactory; -use Sitegeist\Taxonomy\Constants; class TaxonomyService { @@ -245,7 +243,7 @@ public function getLiveWorkspace(): Workspace { $liveWorkspace = $this->getContentRepository()->getWorkspaceFinder()->findOneByName(WorkspaceName::forLive()); if (!$liveWorkspace) { - throw LiveWorkspaceIsMissing::butWasRequested(); + throw new \Exception('live workspace could not be found'); } return $liveWorkspace; }