Merge pull request #32655 from nextcloud/fix/handle-non-existing-settings

Handle non existing settings again
This commit is contained in:
Carl Schwan 2022-05-30 12:53:36 +02:00 committed by GitHub
commit e86bcc8953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,8 +126,13 @@ class Manager implements IManager {
}
foreach (array_unique($this->sectionClasses[$type]) as $index => $class) {
/** @var IIconSection $section */
$section = \OC::$server->get($class);
try {
/** @var IIconSection $section */
$section = $this->container->get($class);
} catch (QueryException $e) {
$this->log->info($e->getMessage(), ['exception' => $e]);
continue;
}
$sectionID = $section->getID();