diff --git a/ennstatus/status/functions.py b/ennstatus/status/functions.py --- a/ennstatus/status/functions.py +++ b/ennstatus/status/functions.py @@ -23,6 +23,8 @@ def _send_mail(server_name, status, last mail.send(msg) except KeyError: current_app.logger.error('Admin for %s not found!' % server_name) + except AssertionError: + pass except Exception as e: current_app.logger.error('Unexpected error: %s' % e, exc_info=True)