mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14: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
|
self.phone_code = None
|
||||||
except SessionPasswordNeeded as e:
|
except SessionPasswordNeeded as e:
|
||||||
print(e.MESSAGE)
|
print(e.MESSAGE)
|
||||||
|
r = self.send(functions.account.GetPassword())
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
r = self.send(functions.account.GetPassword())
|
|
||||||
|
|
||||||
if self.password is None:
|
if self.password is None:
|
||||||
print("Hint: {}".format(r.hint))
|
print("Hint: {}".format(r.hint))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue