Ramesh-vani commited on
Commit
8835a21
·
verified ·
1 Parent(s): 335a9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -887,7 +887,7 @@ async def exe(websocket,connected,key):
887
  else:
888
  # First player starts a new game.
889
  pass
890
- except RuntimeError as exc:
891
  # Send an "error" event if the move was illegal.
892
  await error(websocket, str(exc))
893
  continue
 
887
  else:
888
  # First player starts a new game.
889
  pass
890
+ except Exception as exc:
891
  # Send an "error" event if the move was illegal.
892
  await error(websocket, str(exc))
893
  continue