Ruff: Add and fix UP rules

This commit is contained in:
Josh Wu
2026-01-01 03:07:06 +08:00
parent 8e28f4e159
commit 3f643de4c1
102 changed files with 922 additions and 999 deletions

View File

@@ -49,9 +49,9 @@ async def handle_command_client(
await ams_client.command(RemoteCommandId[command.upper()])
continue
except Exception as error:
writer.write(f"ERROR: {error}\n".encode("utf-8"))
writer.write(f"ERROR: {error}\n".encode())
writer.write(f"unknown command {command}\n".encode("utf-8"))
writer.write(f"unknown command {command}\n".encode())
# -----------------------------------------------------------------------------