We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8eb172 commit b0762f1Copy full SHA for b0762f1
1 file changed
OMPython/ModelicaSystem.py
@@ -964,7 +964,7 @@ def get_outputs_solution(name_list: list[str]) -> None:
964
value = self.getSolutions(name)
965
self._outputs[name] = np.float64(value[0][-1])
966
else:
967
- raise ModelicaSystemError(f"{names} is not a valid output")
+ raise KeyError(f"{names} is not a valid output")
968
969
if names is None:
970
get_outputs_solution(name_list=list(self._outputs.keys()))
0 commit comments