Skip to content

Commit

Permalink
Merge pull request #75 from pieces-app/fix-version-check
Browse files Browse the repository at this point in the history
fix version check print statment
  • Loading branch information
bishoy-at-pieces authored May 27, 2024
2 parents e0d06bd + e691fea commit fe69b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def version_check():
print_version_details(pieces_os_version, __version__)
return False
elif os_version_parsed < min_version_parsed:
print("Please update your Pieces OS. It is not compatible with the current cli-agent version")
print("Please update your Pieces OS. It is not compatible with the current package version")
print()
print_version_details(pieces_os_version, __version__)
return False
return True

def print_version_details(pieces_os_version, __version__):
print(f"Pieces os version: {pieces_os_version}\nPlugin version: {__version__}")
print(f"Pieces os version: {pieces_os_version}\nPlugin version: {__version__}")
4 changes: 2 additions & 2 deletions base_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def close(self):
self.ws.close()
self.thread.join()
self.running = False

@classmethod
def close_all(cls):
for instance in instances:
instance.close()
Expand All @@ -63,6 +63,6 @@ def reconnect_all(cls):

def reconnect(self):
"""Reconnect the websocket connection."""
if not self.is_connected:
if not self.running:
self.start()

0 comments on commit fe69b5f

Please sign in to comment.