Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions OMPython/OMCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,8 @@ def _docker_omc_cmd(
if sys.platform == "win32":
extraFlags = ["-d=zmqDangerousAcceptConnectionsFromAnywhere"]
if not self._interactivePort:
raise OMCSessionException("docker on Windows requires knowing which port to connect to. For "
"dockerContainer=..., the container needs to have already manually exposed "
"this port when it was started (-p 127.0.0.1:n:n) or you get an error later.")
raise OMCSessionException("docker on Windows requires knowing which port to connect to - "
"please set the interactivePort argument")

if sys.platform == "win32":
if isinstance(self._interactivePort, str):
Expand Down Expand Up @@ -892,9 +891,10 @@ def _docker_omc_cmd(self, omc_path_and_args_list) -> list:
if sys.platform == "win32":
extraFlags = ["-d=zmqDangerousAcceptConnectionsFromAnywhere"]
if not self._interactivePort:
raise OMCSessionException("docker on Windows requires knowing which port to connect to. For "
"dockerContainer=..., the container needs to have already manually exposed "
"this port when it was started (-p 127.0.0.1:n:n) or you get an error later.")
raise OMCSessionException("Docker on Windows requires knowing which port to connect to - "
"Please set the interactivePort argument. Furthermore, the container needs "
"to have already manually exposed this port when it was started "
"(-p 127.0.0.1:n:n) or you get an error later.")

if isinstance(self._interactivePort, int):
extraFlags = extraFlags + [f"--interactivePort={int(self._interactivePort)}"]
Expand Down
Loading