Skip to content

Commit

Permalink
EZEE-3281: Imported exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Oct 5, 2020
1 parent e51b35f commit a6677ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Tab/Event/Subscriber/ConditionalTabSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use EzSystems\EzPlatformAdminUi\Tab\Event\TabEvents;
use EzSystems\EzPlatformAdminUi\Tab\Event\TabGroupEvent;
use EzSystems\EzPlatformAdminUi\UI\Service\TabService;
use InvalidArgumentException;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
Expand Down Expand Up @@ -51,7 +52,7 @@ public function onTabGroupInitialize(TabGroupEvent $tabGroupEvent)
$parameters = $tabGroupEvent->getParameters();
try {
$tabs = $this->tabService->getTabGroup($tabGroupIdentifier)->getTabs();
} catch (\InvalidArgumentException $invalidArgumentException) {
} catch (InvalidArgumentException $e) {
$tabs = [];
}

Expand Down

0 comments on commit a6677ea

Please sign in to comment.