diff --git a/ennstatus/root/functions.py b/ennstatus/root/functions.py --- a/ennstatus/root/functions.py +++ b/ennstatus/root/functions.py @@ -23,13 +23,14 @@ def send_membership_mail(form): country=form.country.data, gpg=form.gpg.data ) - print(msg.body) mail.send(msg) flash('Application successfully sended!', 'success') except KeyError: + flash('Internal server error! Please get in touch with us at info@enn.lu!', 'error') current_app.logger.error('Membership admin not found!') except AssertionError: pass except Exception as e: + flash('Internal server error! Please get in touch with us at info@enn.lu!', 'error') current_app.logger.error('Unexpecter error: %s' % e, exc_info=True)