mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-31 08:19:16 +02:00
some error?
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ async def ws_handler(websocket: ServerConnection, shared_data: dict, imc_q: mult
|
|||||||
"dirs": [i.name for i in p.iterdir() if i.is_dir()]
|
"dirs": [i.name for i in p.iterdir() if i.is_dir()]
|
||||||
}
|
}
|
||||||
await websocket.send(json.dumps({"event": "fsdb_list", "data": payload}))
|
await websocket.send(json.dumps({"event": "fsdb_list", "data": payload}))
|
||||||
except Exception: await websocket.send(json.dumps({"event": "fsdb_list", "data": {}}))
|
except Exception as e: await websocket.send(json.dumps({"event": "fsdb_list", "data": {}, "error": str(e)}))
|
||||||
else: await websocket.send(json.dumps({"event": "error", "error": "unknown action"}))
|
else: await websocket.send(json.dumps({"event": "error", "error": "unknown action"}))
|
||||||
|
|
||||||
async def broadcast_worker(ws_q: multiprocessing.Queue, clients: set):
|
async def broadcast_worker(ws_q: multiprocessing.Queue, clients: set):
|
||||||
|
|||||||
Reference in New Issue
Block a user