mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #302 from creative-commoners/pulls/2.0/fix-db-not-ready-delegation
FIX Ensure delegated requests are continued when DB builds fail in middleware
This commit is contained in:
commit
a7fee1729e
@ -43,7 +43,8 @@ class InitStateMiddleware implements HTTPMiddleware
|
||||
|
||||
return $delegate($request);
|
||||
} catch (DatabaseException $ex) {
|
||||
// No-op, database is not ready
|
||||
// Database is not ready
|
||||
return $delegate($request);
|
||||
} finally {
|
||||
// Persist to the session if using the CMS
|
||||
if ($state->getUseSessions()) {
|
||||
|
Loading…
Reference in New Issue
Block a user