Skip to content

Commit 95b8550

Browse files
committed
[OMCSessionZMQ] fix mypy error
1 parent 778bdb2 commit 95b8550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OMPython/OMCSession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,9 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
787787
f"{log_message}")
788788
msg_long_list.append(msg_long)
789789
if has_error:
790+
msg_long_str = '\n'.join(f"{idx:02d}: {msg}" for idx, msg in enumerate(msg_long_list))
790791
raise OMCSessionException(f"OMC error occurred for 'sendExpression({command}, {parsed}):\n"
791-
f"{'\n'.join(f"{idx:2d}: {msg}" for idx, msg in enumerate(msg_long_list))}")
792+
f"{msg_long_str}")
792793

793794
if parsed is False:
794795
return result

0 commit comments

Comments
 (0)