Browse Source

кошерное логирование 2

master
gsd 2 years ago
parent
commit
096f10c24a
  1. 1
      ext/python-a2s-rcon-api/custom_rcon.py

1
ext/python-a2s-rcon-api/custom_rcon.py

@ -44,4 +44,5 @@ async def rcon(
try:
return response.payload.decode(encoding)
except UnicodeDecodeError:
print(f"[{host}:{port}] Cannot decode response payload, use ignore encoding")
return response.payload.decode(encoding, errors="ignore")
Loading…
Cancel
Save