Skip to content

Commit 2f4a8bb

Browse files
authored
Merge pull request #54620 from nextcloud/fix/set-typed-value
fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
2 parents c9712b4 + dbb5705 commit 2f4a8bb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/private/AppConfig.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,12 @@ private function setTypedValue(
876876
$type |= self::VALUE_SENSITIVE;
877877
}
878878

879-
if ($lazy !== $this->isLazy($app, $key)) {
880-
$refreshCache = true;
879+
try {
880+
if ($lazy !== $this->isLazy($app, $key)) {
881+
$refreshCache = true;
882+
}
883+
} catch (AppConfigUnknownKeyException) {
884+
// pass
881885
}
882886

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

0 commit comments

Comments
 (0)