Skip to content

Commit

Permalink
ui_web: formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 22, 2024
1 parent 7a20f23 commit 38b3a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pyglossary/ui/ui_web/websocket_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ def new_client(client, server):

# Called on client disconnecting
def client_left(client, server):
log.info(
f'{server}: Client({(client and client.get("id")) or -1}) disconnected'
)
log.info(f'{server}: Client({(client and client.get("id")) or -1}) disconnected')


# Callback invoked when client sends a message
Expand Down
2 changes: 1 addition & 1 deletion pyglossary/ui/ui_web/websocket_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _shutdown_abruptly(self):
def _disconnect_clients_gracefully(
self,
status=CLOSE_STATUS_NORMAL,
reason=DEFAULT_CLOSE_REASON
reason=DEFAULT_CLOSE_REASON,
):
"""Terminate clients gracefully without shutting down the server."""
for client in self.clients:
Expand Down

0 comments on commit 38b3a01

Please sign in to comment.