Skip to content

Commit ce474e6

Browse files
committed
??? syntax error
1 parent 1dc5c12 commit ce474e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,9 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
635635

636636
result = self.omc_zmq.recv_string()
637637

638+
if result.startswith('Error occurred building AST'):
639+
raise OMCSessionException(f"OMC error: {result}")
640+
638641
if command == "getErrorString()":
639642
# no error handling if 'getErrorString()' is called
640643
if parsed:

0 commit comments

Comments
 (0)