From 158ad34b814fb7c2fa6b0d5d409ec87a51801cfb Mon Sep 17 00:00:00 2001 From: apepenkov <39992738+apepenkov@users.noreply.github.com> Date: Tue, 19 Jul 2022 08:26:24 +0300 Subject: [PATCH] fix typo in authenticator --- telethon/_network/authenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/_network/authenticator.py b/telethon/_network/authenticator.py index 2a6890d7..3ccce440 100644 --- a/telethon/_network/authenticator.py +++ b/telethon/_network/authenticator.py @@ -140,7 +140,7 @@ async def do_authentication(sender): # dh_prime - 2^{2048-64} as well. # (https://core.telegram.org/mtproto/auth_key#dh-key-exchange-complete) if not (1 < g < (dh_prime - 1)): - raise SecurityError('g_a is not within (1, dh_prime - 1)') + raise SecurityError('g is not within (1, dh_prime - 1)') if not (1 < g_a < (dh_prime - 1)): raise SecurityError('g_a is not within (1, dh_prime - 1)')