Skip to content

Commit 2c92c00

Browse files
committed
[OMCSession] fix definiton of _timeout variable - use set_timeout() checks
1 parent 256af25 commit 2c92c00

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ def __init__(
642642
"""
643643

644644
# store variables
645-
self._timeout = timeout
645+
# set_timeout() is used to define the value of _timeout as it includes additional checks
646+
self._timeout: float
647+
self.set_timeout(timeout=timeout)
646648
# generate a random string for this instance of OMC
647649
self._random_string = uuid.uuid4().hex
648650
# get a temporary directory

0 commit comments

Comments
 (0)