Skip to content

Commit 31ef902

Browse files
committed
Revert "[ModelicaSystem] remove OMCSessionException for now"
This reverts commit 2c3ab36.
1 parent fa567a4 commit 31ef902

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
@@ -431,7 +431,7 @@ def getContinuous(self, names=None): # 4
431431
try:
432432
value = self.getSolutions(i)
433433
self.continuouslist[i] = value[0][-1]
434-
except Exception as ex:
434+
except OMCSessionException as ex:
435435
raise ModelicaSystemError(f"{i} could not be computed") from ex
436436
return self.continuouslist
437437

0 commit comments

Comments
 (0)