From dd4dae7e597bb5fd7ef29f71ba001eb79a3bb80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Sep 2023 18:11:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20logic=20error=20detect?= =?UTF-8?q?ed=20by=20a=20unit=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hooray for tests! 🥳 --- src/octoprint/settings/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/settings/__init__.py b/src/octoprint/settings/__init__.py index e1f3179e9..2589613b7 100644 --- a/src/octoprint/settings/__init__.py +++ b/src/octoprint/settings/__init__.py @@ -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]