diff --git a/AnkiConnect.py b/AnkiConnect.py index 8306588..94ec384 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -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()