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
8 changes: 7 additions & 1 deletion data_converters_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ def validate_uplink_downlink(directory):
raise ValueError(f"Directory '{directory}' is not recognized as 'uplink' or 'downlink'.")

result_value = actual_result.get()
output = result_value.get('outputMsg') if is_dedicated else json.loads(result_value.get('output'))
if is_dedicated:
output = result_value.get('outputMsg')
else:
output = result_value.get('output')
if not output:
raise ValueError(f"No 'output' field for converter from {directory} with payload {payload_file} and result {result_value}.")
output = json.loads(output)
error = result_value.get('error')

if error != '':
Expand Down