From 92480e61aaaaaff8bfc93e06289b9798899dde16 Mon Sep 17 00:00:00 2001 From: syntron Date: Sat, 12 Jul 2025 12:13:21 +0200 Subject: [PATCH] [DummyPopen] fix exception on timeout for wait() * add try .. except .. for wait() --- OMPython/OMCSession.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OMPython/OMCSession.py b/OMPython/OMCSession.py index 55b6b6f6..2807538d 100644 --- a/OMPython/OMCSession.py +++ b/OMPython/OMCSession.py @@ -74,7 +74,10 @@ def kill(self): return os.kill(self.pid, signal.SIGKILL) def wait(self, timeout): - return self.process.wait(timeout=timeout) + try: + self.process.wait(timeout=timeout) + except psutil.TimeoutExpired: + pass class OMCSessionException(Exception):