Skip to content

[OMCProcessDocker*] fix unused variable #342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2025
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