Browse Source

Change format index to support Python 2.6

pull/1360/head
Keyan Pishdadian 10 years ago
parent
commit
44da905cb7
  1. 2
      flask/wrappers.py

2
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('Failed to decode JSON object: {}'.format(e))
raise BadRequest('Failed to decode JSON object: {0}'.format(e))
raise BadRequest()
def _load_form_data(self):

Loading…
Cancel
Save