Skip to content

Commit b0762f1

Browse files
committed
[ModelicaSystem] use KeyError in getOutputsFinal()
1 parent f8eb172 commit b0762f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def get_outputs_solution(name_list: list[str]) -> None:
964964
value = self.getSolutions(name)
965965
self._outputs[name] = np.float64(value[0][-1])
966966
else:
967-
raise ModelicaSystemError(f"{names} is not a valid output")
967+
raise KeyError(f"{names} is not a valid output")
968968

969969
if names is None:
970970
get_outputs_solution(name_list=list(self._outputs.keys()))

0 commit comments

Comments
 (0)