Skip to content

Commit

Permalink
Merge pull request #302 from creative-commoners/pulls/2.0/fix-db-not-…
Browse files Browse the repository at this point in the history
…ready-delegation

FIX Ensure delegated requests are continued when DB builds fail in middleware
  • Loading branch information
Franco Springveldt authored Sep 7, 2017
2 parents adfa725 + 56accd0 commit a7fee17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Middleware/InitStateMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function process(HTTPRequest $request, callable $delegate)

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()) {
Expand Down

0 comments on commit a7fee17

Please sign in to comment.