Skip to content

Commit fe5f3e3

Browse files
committed
[OMCSessionZMQ] raise error if parsing of send Expression() result fails
1 parent 07be813 commit fe5f3e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OMPython/OMCSession.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ def sendExpression(self, command, parsed=True):
614614
try:
615615
return om_parser_basic(result)
616616
except (TypeError, UnboundLocalError) as ex:
617-
logger.warning('OMParser error: %s. Returning the unparsed result.', ex)
618-
return result
617+
raise OMCSessionException("Cannot parse OMC result") from ex
619618
else:
620619
return result

0 commit comments

Comments
 (0)