From 8c29ae1814a62f25685770766e0a93fca77552b5 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 5 Jun 2023 11:53:48 -0700 Subject: [PATCH] try catch the theme uninstall --- stanford_profile.install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stanford_profile.install b/stanford_profile.install index 328071f0c..64c9cd89e 100644 --- a/stanford_profile.install +++ b/stanford_profile.install @@ -60,7 +60,12 @@ function stanford_profile_update_9001() { ->getEditable('system.theme') ->set('admin', 'stanford_profile_admin') ->save(); - $theme_installer->uninstall(['seven']); + try { + $theme_installer->uninstall(['seven']); + } + catch (\Exception $e) { + // Theme was already uninstalled. + } } /**