Add email on Flask error

This commit is contained in:
rubenwardy
2018-07-06 22:52:19 +01:00
parent a6c8b12cdd
commit 9dd3570a52
4 changed files with 128 additions and 4 deletions

View File

@@ -37,5 +37,9 @@ csrf = CsrfProtect(app)
mail = Mail(app)
pages = FlatPages(app)
if not app.debug:
from .maillogger import register_mail_error_handler
register_mail_error_handler(app, mail)
from . import models, tasks
from .views import *