Skip to content

Commit

Permalink
TASK: Remove usage of upstream deleted exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Oct 18, 2023
1 parent b35d846 commit d049283
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/Service/TaxonomyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d049283

Please sign in to comment.