From 5aacdd71068759f2b733fc21a941889c4e68184c Mon Sep 17 00:00:00 2001 From: Azat Arslanov Date: Fri, 15 Jun 2018 18:27:34 +0300 Subject: [PATCH] fix incorrect error message --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 935eab6..7cede4b 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -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