From c8e0d8b1c3d97d82f15063308dc4358b4d6e4f8a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 13 Jun 2022 18:28:37 +0200 Subject: [PATCH] catch email exception --- files/routes/login.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/login.py b/files/routes/login.py index c089db907e..59d7139398 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -352,7 +352,9 @@ def sign_up_post(v): 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}") - 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) if existing_account: