Merge remote-tracking branch 'origin/master' into rustedbuilds
This commit is contained in:
commit
b9580c1c29
1 changed files with 2 additions and 2 deletions
|
@ -91,13 +91,13 @@ def common_login(db_user):
|
|||
@app.errorhandler(model.DataModelException)
|
||||
def handle_dme(ex):
|
||||
logger.exception(ex)
|
||||
return make_response('Internal Server Error', 500)
|
||||
return make_response(ex.message, 400)
|
||||
|
||||
|
||||
@app.errorhandler(KeyError)
|
||||
def handle_dme_key_error(ex):
|
||||
logger.exception(ex)
|
||||
return make_response('Internal Server Error', 500)
|
||||
return make_response('Invalid key: %s' % ex.message, 400)
|
||||
|
||||
|
||||
def generate_csrf_token():
|
||||
|
|
Reference in a new issue