Skip to content

Commit 74a2e4b

Browse files
committed
Merge branch 'OMCProcessDocker_unused_variable' into small_updates
2 parents c173613 + fca6568 commit 74a2e4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def _docker_process_get(self, docker_cid: str) -> Optional[DummyPopen]:
646646
raise NotImplementedError("Docker not supported on win32!")
647647

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

851851
docker_cid = None
852-
for idx in range(0, 40):
852+
for _ in range(0, 40):
853853
try:
854854
with open(file=docker_cid_file, mode="r", encoding="utf-8") as fh:
855855
docker_cid = fh.read().strip()

0 commit comments

Comments
 (0)