Skip to content

Commit

Permalink
try catch the theme uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jun 5, 2023
1 parent 391132d commit 8c29ae1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stanford_profile.install
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

/**
Expand Down

0 comments on commit 8c29ae1

Please sign in to comment.