mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-19 16:51:48 +03:00
Changed the first solution of error __init__.py
Tried another approach that perfectly fits the logic of [@ezerinz's](https://github.com/ezerinz) email confirmation code
This commit is contained in:
parent
13d4a04501
commit
1a354adf3b
@ -52,14 +52,10 @@ class Account:
|
|||||||
quit()
|
quit()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
time.sleep(5)
|
||||||
messages = mail_client.message_list()
|
messages = mail_client.message_list()
|
||||||
|
|
||||||
# Check if method `message_list()` didn't return None or empty list.
|
|
||||||
if not messages or len(messages) == 0:
|
if not messages or len(messages) == 0:
|
||||||
# If it returned None or empty list sleep for 5 seconds to wait for new message.
|
|
||||||
time.sleep(5)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
message_id = mail_client.message_list()[0]["id"]
|
message_id = mail_client.message_list()[0]["id"]
|
||||||
message = mail_client.message(message_id)
|
message = mail_client.message(message_id)
|
||||||
verification_url = re.findall(
|
verification_url = re.findall(
|
||||||
|
Loading…
Reference in New Issue
Block a user