mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-08-25 20:18:35 +00:00
Remove critical code from assert statements
This commit is contained in:
@@ -163,7 +163,9 @@ async def do_authentication(sender):
|
||||
if dh_hash != new_nonce_hash:
|
||||
raise SecurityError('Step 3 invalid new nonce hash')
|
||||
|
||||
assert isinstance(dh_gen, DhGenOk), 'Step 3.2 answer was %s' % dh_gen
|
||||
if not isinstance(dh_gen, DhGenOk):
|
||||
raise AssertionError('Step 3.2 answer was %s' % dh_gen)
|
||||
|
||||
return auth_key, time_offset
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user