Skip to content
Prev Previous commit
Next Next commit
[OMCSession] fix definiton of _timeout variable - use set_timeout() c…
…hecks
  • Loading branch information
syntron committed Jan 27, 2026
commit dcfac21805848f195fc99878f2b45b3bc636b22d
4 changes: 3 additions & 1 deletion OMPython/OMCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ def __init__(
"""

# store variables
self._timeout = timeout
# set_timeout() is used to define the value of _timeout as it includes additional checks
self._timeout: float
self.set_timeout(timeout=timeout)
# generate a random string for this instance of OMC
self._random_string = uuid.uuid4().hex
# get a temporary directory
Expand Down