Fix error viewing AnkiConnect page
This commit is contained in:
parent
2767d2928e
commit
7603f2b251
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user