diff options
author | Ulan Aitbay <69082498+enganese@users.noreply.github.com> | 2023-05-23 22:06:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 22:06:39 +0200 |
commit | 1a354adf3b7ba076351eb4f724779a5aeba9e739 (patch) | |
tree | 903825dbec36d5d4f56d9483b2ce8471232208ec | |
parent | Updated gpt4free/usesless/__init__.py (email confirmation in while loop) (diff) | |
download | gpt4free-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__.py | 6 |
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( |