Коды стран

This commit is contained in:
Alexey Polyakov
2026-03-19 16:48:59 +03:00
parent 9bc6c15d82
commit bbee49d2d8
3 changed files with 21 additions and 10 deletions

View File

@@ -27,7 +27,6 @@ class BaseProcessor:
self.proto = WebProto()
async def _send(self, writer, packet):
"""Send packet to client."""
try:
writer.write(packet)
await writer.drain()
@@ -35,7 +34,6 @@ class BaseProcessor:
pass
async def _send_error(self, seq, opcode, error_type, writer):
"""Send error response."""
payload = self.static.ERROR_TYPES.get(error_type, {
"localizedMessage": "Неизвестная ошибка",
"error": "unknown.error",