From 7603f2b251b015fafa18782f0f6acdca2f43094a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 5 Jan 2020 17:49:41 -0800 Subject: [PATCH] Fix error viewing AnkiConnect page --- plugin/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/web.py b/plugin/web.py index f2ac791..68e2e2b 100644 --- a/plugin/web.py +++ b/plugin/web.py @@ -145,7 +145,7 @@ class WebServer: def handlerWrapper(self, req): if len(req.body) == 0: - body = 'AnkiConnect' + body = 'AnkiConnect v.{}'.format(util.setting('apiVersion')).encode('utf-8') else: try: params = json.loads(req.body.decode('utf-8'))