Skip to content

Commit aaa6640

Browse files
committed
[ModelicaSystem] fix exception handling
* define specific exceptions
1 parent 87b0a38 commit aaa6640

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
@@ -597,7 +597,7 @@ def getContinuous(self, names=None): # 4
597597
try:
598598
value = self.getSolutions(i)
599599
self.continuouslist[i] = value[0][-1]
600-
except OMCSessionException as ex:
600+
except (OMCSessionException, ModelicaSystemError) as ex:
601601
raise ModelicaSystemError(f"{i} could not be computed") from ex
602602
return self.continuouslist
603603

0 commit comments

Comments
 (0)