diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-29 00:54:36 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-29 00:54:36 +0200 |
commit | 5c2896ed5e8ea8993aa69804b864d7c2e13b8a44 (patch) | |
tree | 83930d7f7e091cf587ce43549e2e211662526e8c /forefront | |
parent | _ (diff) | |
parent | Merge pull request #242 from ezerinz/main (diff) | |
download | gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar.gz gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar.bz2 gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar.lz gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar.xz gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.tar.zst gpt4free-5c2896ed5e8ea8993aa69804b864d7c2e13b8a44.zip |
Diffstat (limited to 'forefront')
-rw-r--r-- | forefront/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/forefront/__init__.py b/forefront/__init__.py index 615057f8..03f24729 100644 --- a/forefront/__init__.py +++ b/forefront/__init__.py @@ -39,11 +39,11 @@ class Account: } ) - try: - trace_token = response.json()['response']['id'] - if logging: print(trace_token) - except KeyError: - return 'Failed to create account!' + try: + trace_token = response.json()['response']['id'] + if logging: print(trace_token) + except KeyError: + return 'Failed to create account!' response = client.post( f"https://clerk.forefront.ai/v1/client/sign_ups/{trace_token}/prepare_verification?_clerk_js_version=4.32.6", @@ -60,7 +60,7 @@ class Account: while True: sleep(1) for _ in mail.fetch_inbox(): - print(mail.get_message_content(_["id"])) + if logging: print(mail.get_message_content(_["id"])) mail_token = match(r"(\d){5,6}", mail.get_message_content(_["id"])).group(0) if mail_token: |