Skip to content

Commit

Permalink
Set allow_version_mismatch to False by default (L1-2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Rossetto committed Nov 22, 2024
1 parent bd5380e commit b73f620
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/zhinst/toolkit/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,10 @@ class Session(Node):
connection: Existing DAQ server object. If specified the session will
not create a new session to the data server but reuse the passed
one. (default = None)
allow_version_mismatch: When set to False, an exception will be raised
when attempting to connect to a data-server on a different version
than that of the zhinst.core library. (default = True)
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
.. versionchanged:: 0.7.1
Added `allow_version_mismatch` argument.
Expand All @@ -670,7 +671,7 @@ def __init__(
*,
hf2: t.Optional[bool] = None,
connection: t.Optional[core.ziDAQServer] = None,
allow_version_mismatch: bool = True,
allow_version_mismatch: bool = False,
):
self._is_hf2_server = bool(hf2)
if connection is not None:
Expand Down

0 comments on commit b73f620

Please sign in to comment.