don't fail if keyattribute not found in current basis when no basis specified

This is not actually an error, we just need to try another basis
down the list. This is a copypasta bug that was only caught now. :-/
This commit is contained in:
bunnie 2022-11-04 17:05:51 +08:00
parent 0d9a39a349
commit 5de44a9502

View file

@ -741,7 +741,9 @@ impl BasisCache {
index: kcache.descriptor_index,
})
} else {
return Err(Error::new(ErrorKind::NotFound, "key not found"));
// this is not a hard error, it just means that the key wasn't in this basis.
// that's alright, it could be in one of the other ones!
continue;
}
}
}