forked from orbit-oss/flask
Change to hardcoding exception contents to support Python3 json loading exception format
This commit is contained in:
parent
d6a1307f9d
commit
290c371eb1
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ class Request(RequestBase):
|
|||
ctx = _request_ctx_stack.top
|
||||
if ctx is not None:
|
||||
if ctx.app.config.get('DEBUG', False):
|
||||
raise BadRequest(e)
|
||||
raise BadRequest('No JSON object could be decoded')
|
||||
raise BadRequest()
|
||||
|
||||
def _load_form_data(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue