Skip to content

Commit

Permalink
fix: negate version check
Browse files Browse the repository at this point in the history
  • Loading branch information
markus klein committed Apr 13, 2022
1 parent 54bc01e commit f2b2d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph_alpha_client/aleph_alpha_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, host, token=None, email=None, password=None):
# check server version
expect_release = "1"
version = self.get_version()
if version.startswith(expect_release):
if not version.startswith(expect_release):
logging.warning(f"Expected API version {expect_release}.x.x, got {version}. Please update client.")

assert token is not None or (email is not None and password is not None)
Expand Down

0 comments on commit f2b2d61

Please sign in to comment.