Skip to content

Commit 0570ce9

Browse files
authored
Merge pull request #54687 from nextcloud/backport/54620/stable30
[stable30] fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
2 parents 9ac7a81 + d9bb246 commit 0570ce9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/private/AppConfig.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,12 @@ private function setTypedValue(
801801
$type |= self::VALUE_SENSITIVE;
802802
}
803803

804-
if ($lazy !== $this->isLazy($app, $key)) {
805-
$refreshCache = true;
804+
try {
805+
if ($lazy !== $this->isLazy($app, $key)) {
806+
$refreshCache = true;
807+
}
808+
} catch (AppConfigUnknownKeyException) {
809+
// pass
806810
}
807811

808812
$update = $this->connection->getQueryBuilder();

0 commit comments

Comments
 (0)