Skip to content

Commit 626ae0c

Browse files
Handle non existing settings again
See #28189 (comment) Signed-off-by: Carl Schwan <[email protected]>
1 parent 9a499a2 commit 626ae0c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/private/Settings/Manager.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,13 @@ protected function getSections(string $type): array {
126126
}
127127

128128
foreach (array_unique($this->sectionClasses[$type]) as $index => $class) {
129-
/** @var IIconSection $section */
130-
$section = \OC::$server->get($class);
129+
try {
130+
/** @var IIconSection $section */
131+
$section = $this->container->get($class);
132+
} catch (QueryException $e) {
133+
$this->log->info($e->getMessage(), ['exception' => $e]);
134+
continue;
135+
}
131136

132137
$sectionID = $section->getID();
133138

0 commit comments

Comments
 (0)