summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxtekky <98614666+xtekky@users.noreply.github.com>2023-05-24 19:40:12 +0200
committerGitHub <noreply@github.com>2023-05-24 19:40:12 +0200
commit86142cddd1df22d7ab405a2c143ba23858d6c542 (patch)
tree48485aded12a125ac6c838d276f7bf279c4e3b3d
parentMerge pull request #597 from enganese/patch-3 (diff)
parentLatest commit __init__.py (Check this one) (diff)
downloadgpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar.gz
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar.bz2
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar.lz
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar.xz
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.tar.zst
gpt4free-86142cddd1df22d7ab405a2c143ba23858d6c542.zip
Diffstat (limited to '')
-rw-r--r--gpt4free/usesless/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpt4free/usesless/__init__.py b/gpt4free/usesless/__init__.py
index 9efc410f..1192192e 100644
--- a/gpt4free/usesless/__init__.py
+++ b/gpt4free/usesless/__init__.py
@@ -53,7 +53,10 @@ class Account:
while True:
time.sleep(5)
- message_id = mail_client.message_list()[0]["id"]
+ messages = mail_client.message_list()
+ if not messages or len(messages) == 0:
+ continue
+ message_id = messages[0]["id"]
message = mail_client.message(message_id)
verification_url = re.findall(
r"http:\/\/ai\.usesless\.com\/api\/cms\/auth\/email-confirmation\?confirmation=\w.+\w\w",