Skip to content

Commit eba4ce8

Browse files
committed
[DummyPopen] fix exception on timeout for wait()
* add try .. except .. for wait()
1 parent abcae09 commit eba4ce8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ def kill(self):
7474
return os.kill(self.pid, signal.SIGKILL)
7575

7676
def wait(self, timeout):
77-
return self.process.wait(timeout=timeout)
77+
try:
78+
self.process.wait(timeout=timeout)
79+
except psutil.TimeoutExpired:
80+
pass
7881

7982

8083
class OMCSessionException(Exception):

0 commit comments

Comments
 (0)