Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions appabuild/config/lca.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def parse_param(param: dict) -> ImpactModelParam:
:param param: dict containing the elements needed to build an ImpactModelParam.
:return: constructed ImpactModelParam.
"""
if "default" not in param:
raise PydanticCustomError(
"key_error", "Missing field type for a parameter", {"field": "default"}
)
try:
return ImpactModelParam.from_dict(param)
except KeyError:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies = [
"kaleido",
"tqdm",
"ruamel.yaml",
"apparun==0.3.5",
"apparun==0.3.6",
"typer==0.15.1",
"ipython>=7.6.0,<=8.34.0",
"mermaid-py==0.7.1"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aenum
kaleido
tqdm
ruamel.yaml
apparun==0.3.5
apparun==0.3.6
ipython>=7.6.0,<=8.34.0
pre-commit
hatchling
Expand Down