mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
add a try catch to avoid a dumb error
This commit is contained in:
parent
0353307716
commit
4a15903d3d
1 changed files with 4 additions and 1 deletions
5
run.py
5
run.py
|
@ -523,7 +523,10 @@ async def broadcast(message, channels):
|
|||
dead_ws.append(ws)
|
||||
|
||||
for to_remove in dead_ws:
|
||||
ws_list.remove(to_remove)
|
||||
try:
|
||||
ws_list.remove(to_remove)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def subscribe(ws, channel):
|
||||
subscriptions[channel].append(ws)
|
||||
|
|
Loading…
Add table
Reference in a new issue