Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions process/core/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,12 @@ def parse_input_file(data_structure_obj: DataStructure):

variable_config = copy.copy(INPUT_VARIABLES.get(variable_name))

if variable_config is None:
error_msg = (
f"Unrecognised input '{variable_name}' at line {line_no} of input file."
)
raise ProcessValidationError(error_msg)

# string indicates it should be set on the new object data structure
if isinstance(variable_config.module, str):
module = data_structure_obj
Expand All @@ -2145,12 +2151,6 @@ def parse_input_file(data_structure_obj: DataStructure):

variable_config.module = module

if variable_config is None:
error_msg = (
f"Unrecognised input '{variable_name}' at line {line_no} of input file."
)
raise ProcessValidationError(error_msg)

# Validate the variable and also clean it (cast to correct type)
# If the variable value (after the = sign) contains a ',' then it
# defines the whole array so needs to be split down into its elements
Expand Down
Loading