From d353677bdf16972da609f71ba7328f4bece75300 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Thu, 13 Jan 2022 08:08:01 +0100 Subject: [PATCH] Take LogicException into consideration It can be caused by undo Bug: T299111 Change-Id: I94054648ddfe95b59668ad3f53ac864e0c5f6e30 --- includes/SpamBlacklistHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpamBlacklistHooks.php b/includes/SpamBlacklistHooks.php index 511f46f7..84ba330c 100644 --- a/includes/SpamBlacklistHooks.php +++ b/includes/SpamBlacklistHooks.php @@ -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,