Skip to content

Commit 5727b52

Browse files
committed
[OMCSessionZMQ] do not use elif after return / raise
1 parent 9bd8c60 commit 5727b52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
639639
# see: https://build.openmodelica.org/Documentation/OpenModelica.Scripting.ErrorLevel.html
640640
if log_level == 'error':
641641
raise OMCSessionException(msg)
642-
elif log_level == 'warning':
642+
643+
if log_level == 'warning':
643644
logger.warning(msg)
644645
elif log_level == 'notification':
645646
logger.info(msg)

0 commit comments

Comments
 (0)