fix broken error handling for invalid json
This commit is contained in:
parent
d05ba3c4ed
commit
065c199105
@ -268,7 +268,7 @@ class AjaxServer:
|
||||
params = json.loads(makeStr(req.body))
|
||||
body = makeBytes(json.dumps(self.handler(params)))
|
||||
except ValueError:
|
||||
body = json.dumps(None);
|
||||
body = makeBytes(json.dumps(None))
|
||||
|
||||
resp = bytes()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user