Skip to content

Commit

Permalink
Fix an issue with node get (#3628)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Aug 27, 2024
1 parent 0761bc8 commit 374d5f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cfnlint/decode/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 374d5f5

Please sign in to comment.