Skip to content

Commit a65f8e2

Browse files
committed
Clearer error message
1 parent 3dde55d commit a65f8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/crypto/mtproto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def unpack(b: BytesIO, session_id: bytes, auth_key: bytes, auth_key_id: bytes) -
7272
left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left]
7373
left = "\n".join(" ".join(x for x in left) for left in left)
7474

75-
raise ValueError(f"Unknown constructor found: {hex(e.args[0])}\n{left}")
75+
raise ValueError(f"The server sent an unknown constructor: {hex(e.args[0])}\n{left}")
7676

7777
# https://core.telegram.org/mtproto/security_guidelines#checking-sha256-hash-value-of-msg-key
7878
# https://core.telegram.org/mtproto/security_guidelines#checking-message-length

0 commit comments

Comments
 (0)