Initial support for SBv3 and MockStage
This commit is contained in:
parent
068ce9e751
commit
ff534e6a51
10 changed files with 966 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from flask import jsonify
|
||||
from flask import jsonify, escape
|
||||
from werkzeug.exceptions import default_exceptions
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ class JSONExceptionHandler(object):
|
|||
|
||||
response = {
|
||||
'status_code': status_code,
|
||||
'message': message
|
||||
'message': escape(message)
|
||||
}
|
||||
return jsonify(response), status_code
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue