From 374d5f5c3a5dff429c14d9dce2e709ac52527f3e Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Tue, 27 Aug 2024 13:11:00 -0700 Subject: [PATCH] Fix an issue with node get (#3628) --- 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)