From e53ef2143674a6d88cf2d206bb81035539ca4ae6 Mon Sep 17 00:00:00 2001 From: Roman Kuzmenko Date: Sun, 30 Mar 2025 12:13:34 -0700 Subject: [PATCH] Do not raise an exception when a nested field is overriden by an environment variable while reading another nested sibling Signed-off-by: Roman Kuzmenko --- vyper/vyper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vyper/vyper.py b/vyper/vyper.py index ed9c67d..2f2c828 100644 --- a/vyper/vyper.py +++ b/vyper/vyper.py @@ -324,8 +324,8 @@ def _set_insensitive(self, key, val, source): if source: real_key = self._find_real_key(key, source) if real_key is None: - msg = "No case insensitive variant of {0} found.".format(key) - raise KeyError(msg) + log.debug("No case insensitive variant of {0} found.".format(key)) + return False source[real_key] = val return True