From ebfefbce03743ff1c99bd45100055295c73c2207 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Tue, 27 Aug 2024 12:42:32 -0700 Subject: [PATCH] Fix an issue with node get --- src/cfnlint/decode/node.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cfnlint/decode/node.py b/src/cfnlint/decode/node.py index c40bd2f9f6..46607afb27 100644 --- a/src/cfnlint/decode/node.py +++ b/src/cfnlint/decode/node.py @@ -73,8 +73,6 @@ def __deepcopy__(self, memo): def get(self, key, default=None): """Override the default get""" - if not isinstance(key, str): - raise ValueError(f"Key {key!r} must be a string") if isinstance(default, dict): default = dict_node(default, self.start_mark, self.end_mark) return super().get(key, default)