Skip to content

Commit b899323

Browse files
committed
[OMSessionException] rename from OMCSessionException
1 parent 2d9bc88 commit b899323

2 files changed

Lines changed: 79 additions & 73 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ModelExecutionData,
2626
ModelExecutionException,
2727

28-
OMCSessionException,
28+
OMSessionException,
2929
OMCSessionLocal,
3030

3131
OMPathABC,
@@ -1681,7 +1681,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
16811681
"""
16821682
try:
16831683
retval = self._session.sendExpression(expr=expr, parsed=parsed)
1684-
except OMCSessionException as ex:
1684+
except OMSessionException as ex:
16851685
raise ModelicaSystemError(f"Error executing {repr(expr)}: {ex}") from ex
16861686

16871687
logger.debug(f"Result of executing {repr(expr)}: {textwrap.shorten(repr(retval), width=100)}")

0 commit comments

Comments
 (0)