I have a Flask application that works well and produces an occasional error, which is visible when it is running with debug=True:
debug=True
if __name__ =
In Development, make sure to set: app.config['PROPAGATE_EXCEPTIONS'] = False. Default is None: https://flask.palletsprojects.com/en/1.1.x/config/