summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlan Aitbay <69082498+enganese@users.noreply.github.com>2023-05-23 22:06:39 +0200
committerGitHub <noreply@github.com>2023-05-23 22:06:39 +0200
commit1a354adf3b7ba076351eb4f724779a5aeba9e739 (patch)
tree903825dbec36d5d4f56d9483b2ce8471232208ec
parentUpdated gpt4free/usesless/__init__.py (email confirmation in while loop) (diff)
downloadgpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar.gz
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar.bz2
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar.lz
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar.xz
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.tar.zst
gpt4free-1a354adf3b7ba076351eb4f724779a5aeba9e739.zip
-rw-r--r--gpt4free/usesless/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gpt4free/usesless/__init__.py b/gpt4free/usesless/__init__.py
index 2295f640..ee59e67f 100644
--- a/gpt4free/usesless/__init__.py
+++ b/gpt4free/usesless/__init__.py
@@ -52,14 +52,10 @@ class Account:
quit()
while True:
+ time.sleep(5)
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 it returned None or empty list sleep for 5 seconds to wait for new message.
- time.sleep(5)
continue
-
message_id = mail_client.message_list()[0]["id"]
message = mail_client.message(message_id)
verification_url = re.findall(