Skip to content

Commit

Permalink
Catching one more exception for client retry
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman Rusia committed Nov 21, 2024
1 parent d0a3144 commit 594b0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
name = "wcgw"
version = "1.1.0"
version = "1.1.1"
description = "What could go wrong giving full shell access to chatgpt?"
readme = "README.md"
requires-python = ">=3.10, <3.13"
Expand Down
2 changes: 1 addition & 1 deletion src/wcgw/client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def register_client(server_url: str, client_uuid: str = "") -> None:
assert isinstance(output, str)
websocket.send(output)

except (websockets.ConnectionClosed, ConnectionError):
except (websockets.ConnectionClosed, ConnectionError, OSError):
print(f"Connection closed for UUID: {client_uuid}, retrying")
register_client(server_url, client_uuid)

Expand Down

0 comments on commit 594b0ac

Please sign in to comment.