diff --git a/server.py b/server.py index 25cf45d..33aae91 100644 --- a/server.py +++ b/server.py @@ -32,7 +32,7 @@ def interceptor(request, response): # A response interceptor takes two args def handleJson(jsonObj): - if jsonObj[0] == 'online-level': + if 'online-level' in jsonObj: typ = jsonObj[1]["LevelValues"][0]["Type"] values = jsonObj[1]["LevelValues"][0]["Values"] NmtId = jsonObj[1]["NmtId"]