aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Repair/NC21/ValidatePhoneNumber.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Repair/NC21/ValidatePhoneNumber.php b/lib/private/Repair/NC21/ValidatePhoneNumber.php
index f9c3c5952bf..b3534dbeae8 100644
--- a/lib/private/Repair/NC21/ValidatePhoneNumber.php
+++ b/lib/private/Repair/NC21/ValidatePhoneNumber.php
@@ -55,7 +55,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;