Skip to content

Commit 886cd3b

Browse files
committed
[OMCSessionZMQ] raise error if parsing of send Expression() result fails
1 parent 642cb91 commit 886cd3b

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
@@ -617,7 +617,6 @@ def sendExpression(self, command, parsed=True):
617617
try:
618618
return om_parser_basic(result)
619619
except (TypeError, UnboundLocalError) as ex:
620-
logger.warning('OMParser error: %s. Returning the unparsed result.', ex)
621-
return result
620+
raise OMCSessionException("Cannot parse OMC result") from ex
622621
else:
623622
return result

0 commit comments

Comments
 (0)