fix incorrect error message

This commit is contained in:
Azat Arslanov
2018-06-15 18:27:34 +03:00
parent 506d750599
commit 5aacdd7106

View File

@@ -322,7 +322,7 @@ class MTProtoCompactFrameStreamWriter(LayeredStreamWriterBase):
LARGE_PKT_BORGER = 256 ** 3
if len(data) % 4 != 0:
print_err("BUG: MTProtoFrameStreamWriter attempted to send msg with len %d" % len(msg))
print_err("BUG: MTProtoFrameStreamWriter attempted to send msg with len %d" % len(data))
return 0
len_div_four = len(data) // 4