mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 12:10:21 +03:00
Remove unnecessary check for password_required
This commit is contained in:
parent
df31a03788
commit
b52384fce8
|
@ -49,9 +49,8 @@ class NeedsMore(TelegramClient):
|
|||
try:
|
||||
code_ok = self.sign_in(user_phone, code)
|
||||
except SessionPasswordNeededError:
|
||||
if e.password_required:
|
||||
pw = getpass('Two step verification enabled. Please enter your password: ')
|
||||
self.sign_in(password=pw)
|
||||
pw = getpass('Two step verification enabled. Please enter your password: ')
|
||||
self.sign_in(password=pw)
|
||||
print('INFO: Client initialized succesfully!')
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user