Merge pull request #54620 from nextcloud/fix/set-typed-value

fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
This commit is contained in:
Marcel Klehr 2025-08-26 16:59:26 +02:00 committed by GitHub
commit 2f4a8bb89c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -876,8 +876,12 @@ class AppConfig implements IAppConfig {
$type |= self::VALUE_SENSITIVE;
}
if ($lazy !== $this->isLazy($app, $key)) {
$refreshCache = true;
try {
if ($lazy !== $this->isLazy($app, $key)) {
$refreshCache = true;
}
} catch (AppConfigUnknownKeyException) {
// pass
}
$update = $this->connection->getQueryBuilder();