Skip to content

Commit 5377e62

Browse files
committed
Revert "[ModelicaSystem] remove OMCSessionException for now"
This reverts commit 2c3ab36.
1 parent 0f9e4a2 commit 5377e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def getContinuous(self, names=None): # 4
426426
try:
427427
value = self.getSolutions(i)
428428
self.continuouslist[i] = value[0][-1]
429-
except Exception as ex:
429+
except OMCSessionException as ex:
430430
raise ModelicaSystemError(f"{i} could not be computed") from ex
431431
return self.continuouslist
432432

0 commit comments

Comments
 (0)