Skip to content

Commit

Permalink
fix: correct ci
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Jose Leiva Palomo <[email protected]>
  • Loading branch information
AleJo2995 committed Nov 14, 2023
1 parent 4d3e5b1 commit 2e9d8ba
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions trestle/common/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,11 @@ def dict_to_parameter(param_dict: Dict[str, Any]) -> common.Parameter:
if const.PARAM_VALUE_ORIGIN in param_dict:
param_value_origin = param_dict.pop(const.PARAM_VALUE_ORIGIN)
if param_value_origin is not None:
props.append(
common.Property(
name=const.PARAM_VALUE_ORIGIN, value=param_value_origin
)
)
props.append(common.Property(name=const.PARAM_VALUE_ORIGIN, value=param_value_origin))
else:
raise TrestleError(
f'Parameter value origin property for parameter {param_dict["id"]} is None and it should have a value'
f'Parameter value origin property for parameter {param_dict["id"]}'
'is None and it should have a value'
)
if const.ALT_IDENTIFIER in param_dict:
# removing alt-identifier as this is prop just informative in markdown
Expand Down

0 comments on commit 2e9d8ba

Please sign in to comment.