Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions OMPython/ModelicaSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
ModelExecutionData,
ModelExecutionException,

OMCSessionException,
OMSessionException,
OMCSessionLocal,

OMPathABC,
Expand Down Expand Up @@ -1688,7 +1688,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
"""
try:
retval = self._session.sendExpression(expr=expr, parsed=parsed)
except OMCSessionException as ex:
except OMSessionException as ex:
raise ModelicaSystemError(f"Error executing {repr(expr)}: {ex}") from ex

logger.debug(f"Result of executing {repr(expr)}: {textwrap.shorten(repr(retval), width=100)}")
Expand Down Expand Up @@ -2829,7 +2829,9 @@ def _prepare_structure_parameters(


class ModelicaSystemCmd(ModelExecutionCmd):
# TODO: docstring
"""
Compatibility class; in the new version it is renamed as MOdelExecutionCmd.
"""

def __init__(
self,
Expand Down
Loading
Loading