mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Move GetPassword request outside the loop
This commit is contained in:
parent
f65d369fd1
commit
a662c1734f
1 changed files with 1 additions and 1 deletions
|
|
@ -290,10 +290,10 @@ class Client:
|
|||
self.phone_code = None
|
||||
except SessionPasswordNeeded as e:
|
||||
print(e.MESSAGE)
|
||||
r = self.send(functions.account.GetPassword())
|
||||
|
||||
while True:
|
||||
try:
|
||||
r = self.send(functions.account.GetPassword())
|
||||
|
||||
if self.password is None:
|
||||
print("Hint: {}".format(r.hint))
|
||||
|
|
|
|||
Loading…
Reference in a new issue