##// END OF EJS Templates
log exceptions parsing JSON
MinRK -
Show More
@@ -257,7 +257,9 class IPythonHandler(AuthenticatedHandler):
257 257 body = self.request.body.strip().decode(u'utf-8')
258 258 try:
259 259 model = json.loads(body)
260 except:
260 except Exception:
261 self.log.debug("Bad JSON: %r", body)
262 self.log.error("Couldn't parse JSON", exc_info=True)
261 263 raise web.HTTPError(400, u'Invalid JSON in body of request')
262 264 return model
263 265
General Comments 0
You need to be logged in to leave comments. Login now