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
4 changes: 2 additions & 2 deletions OMPython/OMCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def _docker_process_get(self, docker_cid: str) -> Optional[DummyPopen]:
raise NotImplementedError("Docker not supported on win32!")

docker_process = None
for idx in range(0, 40):
for _ in range(0, 40):
dockerTop = subprocess.check_output(["docker", "top", docker_cid]).decode().strip()
docker_process = None
for line in dockerTop.split("\n"):
Expand Down Expand Up @@ -846,7 +846,7 @@ def _docker_omc_start(self) -> Tuple[subprocess.Popen, DummyPopen, str]:
raise OMCSessionException(f"Invalid content for docker container ID file path: {docker_cid_file}")

docker_cid = None
for idx in range(0, 40):
for _ in range(0, 40):
try:
with open(file=docker_cid_file, mode="r", encoding="utf-8") as fh:
docker_cid = fh.read().strip()
Expand Down
Loading