fix(OCC): Don't throw in the repair step for phone validation

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/36781/head
Joas Schilling 3 years ago
parent e0251ea24e
commit c8c4dd637f
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 3
      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;

Loading…
Cancel
Save