From 9864b3e3565e244215112bdbdce19071eb585a46 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 31 Jan 2023 15:15:49 -0500 Subject: [PATCH] fix exception type --- CRM/Upgrade/Snapshot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Upgrade/Snapshot.php b/CRM/Upgrade/Snapshot.php index cb0eb7afd8..941f1fe127 100644 --- a/CRM/Upgrade/Snapshot.php +++ b/CRM/Upgrade/Snapshot.php @@ -63,7 +63,7 @@ class CRM_Upgrade_Snapshot { // Use select MAX(id) rather than COUNT as COUNT is slow on large databases. $max = CRM_Core_DAO::singleValueQuery("SELECT MAX(id) FROM `{$table}`"); } - catch (CRM_Core_Exception $e) { + catch (\Exception $e) { $max = 0; } if ($max > $limit) { -- 2.25.1