Skip to content

Commit

Permalink
Merge pull request xtekky#215 from hikeri/main
Browse files Browse the repository at this point in the history
Update forefront __init__.py
  • Loading branch information
xtekky authored Apr 28, 2023
2 parents 25428d5 + 2b4079f commit 5e8870e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions forefront/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def create(proxy=None, logging=False):
"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",
Expand Down

0 comments on commit 5e8870e

Please sign in to comment.