Spaces:
Runtime error
Runtime error
Update app.py
Browse files14 unmodified lines1516171819202114 unmodified linesasync for message in websocket:try:p = json.load(open("p.json"))b = json.load(open("p.json"))jm = json.loads(message)if jm["token"] == None:await websocket.send(json.dumps({"type": "error", "data": "No token"}))14 unmodified lines1516171819202114 unmodified linesasync for message in websocket:try:p = json.load(open("p.json"))b = json.load(open("b.json"))jm = json.loads(message)if jm["token"] == None:await websocket.send(json.dumps({"type": "error", "data": "No token"}))
app.py+1-1