Skip to content

Commit 0d5d002

Browse files
syntronadeas31
andauthored
[OMCProcessDocker*] fix unused variable (#342)
Co-authored-by: Adeel Asghar <adeel.asghar@liu.se>
1 parent ca6039d commit 0d5d002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMPython/OMCSession.py

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

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

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

0 commit comments

Comments
 (0)