# HG changeset patch # User Dennis Fink # Date 2015-02-16 02:31:36 # Node ID 4b2de5372260133f391d22397582af0a0caf7665 # Parent 32f836e7ff5d37ee5773fca7b96cb6597dd533ac Announce to the user if the application form could not be sended! 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)