AliJabbarpour commited on
Commit
a2e53e2
·
verified ·
1 Parent(s): ea34464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -86,4 +86,7 @@ async def transcribe(websocket: WebSocket):
86
  finally:
87
  if tmp_path and os.path.exists(tmp_path):
88
  os.remove(tmp_path)
89
- await websocket.close()
 
 
 
 
86
  finally:
87
  if tmp_path and os.path.exists(tmp_path):
88
  os.remove(tmp_path)
89
+ try:
90
+ await websocket.close()
91
+ except Exception:
92
+ pass