Skip to content

Commit

Permalink
add fallback if component name does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehk committed Sep 12, 2023
1 parent a0e9f5e commit 1312e60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(
):
errors = validation_error.errors()

component_name = data[EcalcYamlKeywords.name]
component_name = data.get(EcalcYamlKeywords.name, "Missing Component Name")
messages = []
error_locs = []
try:
Expand Down

0 comments on commit 1312e60

Please sign in to comment.