catch email exception

master
Aevann1 2022-06-13 18:28:37 +02:00
parent 53b365739c
commit c8e0d8b1c3
1 changed files with 3 additions and 1 deletions

View File

@ -352,7 +352,9 @@ def sign_up_post(v):
g.db.flush() g.db.flush()
send_notification(ref_user.id, f"@AutoJanny has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}") send_notification(ref_user.id, f"@AutoJanny has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}")
if email: send_verification_email(new_user) if email:
try: send_verification_email(new_user)
except Exception as e: print(e)
existing_account = get_user(username, graceful=True) existing_account = get_user(username, graceful=True)
if existing_account: if existing_account: