added app.config['PROPAGATE_EXCEPTIONS'] = True