Skip to content

Commit 6bfde79

Browse files
committed
??? fix OMCSessionCmd for OMCSessionZMQ (v400)
1 parent 337a5bb commit 6bfde79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class OMCSessionCmd:
7272
"""
7373

7474
def __init__(self, session: OMSessionABC, readonly: bool = False):
75-
if not isinstance(session, OMSessionABC):
75+
if not isinstance(session, (OMSessionABC, OMCSessionZMQ)):
7676
raise OMCSessionException("Invalid OMC process definition!")
7777
self._session = session
7878
self._readonly = readonly

0 commit comments

Comments
 (0)