Skip to content

Commit 97e8333

Browse files
committed
[OMCSession] fix definiton of _timeout variable - use set_timeout() checks
1 parent 938a124 commit 97e8333

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
@@ -677,7 +677,9 @@ def __init__(
677677
"""
678678

679679
# store variables
680-
self._timeout = timeout
680+
# set_timeout() is used to define the value of _timeout as it includes additional checks
681+
self._timeout: float
682+
self.set_timeout(timeout=timeout)
681683
# generate a random string for this instance of OMC
682684
self._random_string = uuid.uuid4().hex
683685
# get a temporary directory

0 commit comments

Comments
 (0)