From 188b6c6611f8cddbfa1d81ea5a5c4fa4875d288a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 20 Feb 2023 14:40:50 +0100 Subject: [PATCH] fix(OCC): Don't throw in the repair step for phone validation Signed-off-by: Joas Schilling --- lib/private/Repair/NC21/ValidatePhoneNumber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Repair/NC21/ValidatePhoneNumber.php b/lib/private/Repair/NC21/ValidatePhoneNumber.php index 3217a1f082c..964d62ad0ab 100644 --- a/lib/private/Repair/NC21/ValidatePhoneNumber.php +++ b/lib/private/Repair/NC21/ValidatePhoneNumber.php @@ -56,7 +56,8 @@ class ValidatePhoneNumber implements IRepairStep { public function run(IOutput $output): void { if ($this->config->getSystemValueString('default_phone_region', '') === '') { - throw new \Exception('Can not validate phone numbers without `default_phone_region` being set in the config file'); + $output->warning('Can not validate phone numbers without `default_phone_region` being set in the config file'); + return; } $numUpdated = 0;