Skip to content

Commit 2bb623e

Browse files
committed
AC-15329::removed try catch block
1 parent ac31dfd commit 2bb623e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

setup/src/Magento/Setup/Model/ConfigModel.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,10 @@ public function getAvailableOptions()
7272
}
7373

7474
$optionCollection = array_merge([], ...$optionCollection);
75-
$errors = [];
7675
foreach ($optionCollection as $option) {
7776
$currentValue = $this->deploymentConfig->get($option->getConfigPath());
7877
if ($currentValue !== null && $option->acceptValue()) {
79-
try {
80-
$option->setDefault($currentValue);
81-
} catch (\Throwable $e) {
82-
$errors[] = [$e->getMessage()];
83-
}
78+
$option->setDefault($currentValue);
8479
}
8580
}
8681

0 commit comments

Comments
 (0)