Skip to content

Commit

Permalink
[BUGFIX] Handle possible DBALException (#2153)
Browse files Browse the repository at this point in the history
We can ignore a missing database connection at this point. We cant do anything about a missing database connection. This Scenario is possible during first install.
  • Loading branch information
JanStorm committed Apr 2, 2024
1 parent e57fa43 commit 066027a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -8,6 +8,7 @@
* LICENSE.md file that was distributed with this source code.
*/

use Doctrine\DBAL\Exception\TableNotFoundException;
use FluidTYPO3\Flux\Builder\ContentTypeBuilder;
use FluidTYPO3\Flux\Builder\RequestBuilder;
use FluidTYPO3\Flux\Content\ContentTypeManager;
Expand Down Expand Up @@ -178,7 +179,7 @@ function (ProviderInterface $item1, ProviderInterface $item2) use ($sortingValue

try {
$this->contentTypeBuilder->registerContentType($providerExtensionName, $contentType, $provider);
} catch (PageNotFoundException $error) {
} catch (PageNotFoundException|TableNotFoundException $error) {
// Suppressed: Flux bootstrap does not care if a page can be resolved or not.
} catch (Exception $error) {
if (!$applicationContext->isProduction()) {
Expand Down

0 comments on commit 066027a

Please sign in to comment.