🐛 Fix a logic error detected by a unit test

Hooray for tests! 🥳
This commit is contained in:
Gina Häußge committed 2023-09-06 18:11:00 +02:00
1 parent d1668479c7
commit dd4dae7e59
1 file changed
+1 -1
+1 -1
View File
@@ -302,7 +302,7 @@ class HierarchicalChainMap:
key = self._path_to_key(path)
prefix = key + _CHAINMAP_SEP
if key in current: # and not self._has_prefix(prefix, current):
if key in current and not self._has_prefix(prefix, current):
# found it, return
return current[key]