Skip to content

Commit

Permalink
Gracefully produce 404 error page for URLs with unknown vocabulary ID
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Oct 6, 2021
1 parent 6688f21 commit 9ac8831
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 9ac8831

Please sign in to comment.