Skip to content

Commit cce234b

Browse files
committed
[OMCSession] fix definiton of _timeout variable - use set_timeout() checks
1 parent 702208d commit cce234b

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
@@ -648,7 +648,9 @@ def __init__(
648648
"""
649649

650650
# store variables
651-
self._timeout = timeout
651+
# set_timeout() is used to define the value of _timeout as it includes additional checks
652+
self._timeout: float
653+
self.set_timeout(timeout=timeout)
652654
# generate a random string for this instance of OMC
653655
self._random_string = uuid.uuid4().hex
654656
# get a temporary directory

0 commit comments

Comments
 (0)