Skip to content
Open
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
6 changes: 3 additions & 3 deletions OMPython/OMCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ def __del__(self):
if isinstance(self._omc_zmq, zmq.Socket):
try:
self.sendExpression("quit()")
except OMCSessionException:
pass
except OMCSessionException as exc:
logger.warning(f"Exception on sending 'quit()' to OMC: {exc}! Continue nevertheless ...")
finally:
self._omc_zmq = None

Expand All @@ -720,7 +720,7 @@ def __del__(self):
self._omc_process.wait(timeout=2.0)
except subprocess.TimeoutExpired:
if self._omc_process:
logger.warning("OMC did not exit after being sent the quit() command; "
logger.warning("OMC did not exit after being sent the 'quit()' command; "
"killing the process with pid=%s", self._omc_process.pid)
self._omc_process.kill()
self._omc_process.wait()
Expand Down
Loading