diff --git a/src/bizy_server/server.py b/src/bizy_server/server.py index a3a00b63..76491201 100644 --- a/src/bizy_server/server.py +++ b/src/bizy_server/server.py @@ -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 @@ -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)) @@ -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