From 290c371eb1d0a140203cffce6f270b3cca6783dc Mon Sep 17 00:00:00 2001 From: Keyan Pishdadian Date: Thu, 5 Mar 2015 12:48:38 -0500 Subject: [PATCH] Change to hardcoding exception contents to support Python3 json loading exception format --- flask/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/wrappers.py b/flask/wrappers.py index 57d5a029..df9d205c 100644 --- a/flask/wrappers.py +++ b/flask/wrappers.py @@ -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):