Skip to content

Commit

Permalink
Merge pull request #1215 from NatLibFi/fix-invalid-vocabid-404-error
Browse files Browse the repository at this point in the history
Gracefully produce 404 error page for URLs with unknown vocabulary ID
  • Loading branch information
osma committed Oct 6, 2021
2 parents 6688f21 + 9ac8831 commit 649e09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
$vocab = $parts[1];
try {
$request->setVocab($parts[1]);
} catch (Exception $e) {
} catch (Exception | ValueError $e) {
$request->setLang($controller->guessLanguage());
$controller->invokeGenericErrorPage($request);
return;
Expand Down

0 comments on commit 649e09a

Please sign in to comment.