Prevent error on deletion when the proxy password does not exist
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
connect(job, &QKeychain::Job::finished, this, [](const QKeychain::Job *const incomingJob) {
if (incomingJob->error() == QKeychain::NoError) {
qCInfo(lcAccountManager) << "Deleted proxy password from keychain";
+ } else if (incomingJob->error() == QKeychain::EntryNotFound) {
+ qCDebug(lcAccountManager) << "Proxy password not found in keychain, can't delete";
} else {
qCWarning(lcAccountManager) << "Failed to delete proxy password to keychain" << incomingJob->errorString();
}