Take LogicException into consideration

It can be caused by undo

Bug: T299111
Change-Id: I94054648ddfe95b59668ad3f53ac864e0c5f6e30
This commit is contained in:
Amir Sarabadani 2022-01-13 08:08:01 +01:00
parent 3cb265f12e
commit d353677bdf

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,