Skip to content

Commit e53ef21

Browse files
committed
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 <[email protected]>
1 parent a0a6ea7 commit e53ef21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vyper/vyper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def _set_insensitive(self, key, val, source):
324324
if source:
325325
real_key = self._find_real_key(key, source)
326326
if real_key is None:
327-
msg = "No case insensitive variant of {0} found.".format(key)
328-
raise KeyError(msg)
327+
log.debug("No case insensitive variant of {0} found.".format(key))
328+
return False
329329

330330
source[real_key] = val
331331
return True

0 commit comments

Comments
 (0)