# HG changeset patch # User Franz Glasner # Date 1639488490 -3600 # Node ID 5864977bb44f6b303b381ba2e21ed08b6d15f409 # Parent b95c1278149795dec5980b75620a3f0e6777182b FIX: KeyError formatting. For jailed configs: self._path is a tuple and must be wrapped into a tuple when used for "%"-style error formatting. diff -r b95c12781497 -r 5864977bb44f configmix/config.py --- a/configmix/config.py Sat Dec 11 19:56:35 2021 +0100 +++ b/configmix/config.py Tue Dec 14 14:28:10 2021 +0100 @@ -844,8 +844,10 @@ # Early error out if the chroot does not exist but allow # degenerated case if `self._path` is empty. # - if self._path: - new_base.getvarl(*self._path) + if self._path and self._path not in new_base: + raise KeyError( + "base key path %r not available in the new base" + % (self._path, )) def __getattr__(self, name): try: