parent
9ff61c3af8
commit
0465e5eddd
2 changed files with 75 additions and 0 deletions
|
|
@ -15,12 +15,15 @@ import werkzeug.debug.tbtools
|
|||
import yaml
|
||||
|
||||
import agenda.data
|
||||
import agenda.error_mail
|
||||
import agenda.travel
|
||||
|
||||
app = flask.Flask(__name__)
|
||||
app.debug = False
|
||||
app.config.from_object("config.default")
|
||||
|
||||
agenda.error_mail.setup_error_mail(app)
|
||||
|
||||
|
||||
@app.errorhandler(werkzeug.exceptions.InternalServerError)
|
||||
def exception_handler(e: werkzeug.exceptions.InternalServerError) -> tuple[str, int]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue