Skip to content

Commit 0469adf

Browse files
committed
Revert "[ModelicaSystem] remove OMCSessionException for now"
This reverts commit 2c3ab36.
1 parent 228b610 commit 0469adf

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
@@ -425,7 +425,7 @@ def getContinuous(self, names=None): # 4
425425
try:
426426
value = self.getSolutions(i)
427427
self.continuouslist[i] = value[0][-1]
428-
except Exception as ex:
428+
except OMCSessionException as ex:
429429
raise ModelicaSystemError(f"{i} could not be computed") from ex
430430
return self.continuouslist
431431

0 commit comments

Comments
 (0)