diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-28 10:02:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 10:02:16 +0200 |
commit | 5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1 (patch) | |
tree | 39315d5dbcda4594266171a5668402110a40674b /forefront | |
parent | Update README.md (diff) | |
parent | Update __init__.py (diff) | |
download | gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar.gz gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar.bz2 gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar.lz gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar.xz gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.tar.zst gpt4free-5e8870ec1b844f06347ae8c9d3cea10d4f8b7ce1.zip |
Diffstat (limited to 'forefront')
-rw-r--r-- | forefront/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/forefront/__init__.py b/forefront/__init__.py index 44f5d44d..615057f8 100644 --- a/forefront/__init__.py +++ b/forefront/__init__.py @@ -38,9 +38,12 @@ class Account: "email_address": mail_adress } ) - - trace_token = response.json()['response']['id'] - if logging: print(trace_token) + + 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", |