Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
王久扬 authored and 王久扬 committed Dec 5, 2024
1 parent b61a239 commit 07ec169
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/bizy_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import uuid

import aiohttp

from server import PromptServer

from .api_client import APIClient
from .errno import ErrorNo, errnos
from .error_handler import ErrorHandler
Expand Down Expand Up @@ -492,9 +492,9 @@ async def send_socket_catch_exception(self, function, message):
try:
await function(message)
except (
aiohttp.ClientError,
aiohttp.ClientPayloadError,
ConnectionResetError,
aiohttp.ClientError,
aiohttp.ClientPayloadError,
ConnectionResetError,
) as err:
logging.warning("send error: {}".format(err))

Expand All @@ -512,7 +512,9 @@ def check_sync_status(self, bizy_model_id: str, version_ids: list, sid=None):
removed = []
while True:
# 从version_ids中移除removed中的version_id
version_ids = [version_id for version_id in version_ids if version_id not in removed]
version_ids = [
version_id for version_id in version_ids if version_id not in removed
]
if len(version_ids) == 0:
return

Expand Down

0 comments on commit 07ec169

Please sign in to comment.