Merge "Take LogicException into consideration"

This commit is contained in:
jenkins-bot 2022-01-13 07:32:38 +00:00 committed by Gerrit Code Review
commit 24a757cab4

View file

@ -43,7 +43,7 @@ class SpamBlacklistHooks implements
// Try getting the update directly
$updater = $context->getWikiPage()->getCurrentUpdate();
$pout = $updater->getParserOutputForMetaData();
} catch ( PreconditionException $exception ) {
} catch ( PreconditionException | LogicException $exception ) {
$services = MediaWikiServices::getInstance();
$stashedEdit = $services->getPageEditStash()->checkCache(
$title,