Ramesh-vani commited on
Commit
e183787
·
verified ·
1 Parent(s): d8bc3f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -32,6 +32,8 @@ async def execute_command(websocket, project_name, command):
32
  output, error = process.communicate()
33
  response = f"Command executed:\n\nOutput:\n{output.decode('utf-8')}\nError:\n{error.decode('utf-8')}"
34
  websockets.broadcast(connected, response)
 
 
35
 
36
  async def create_file_structure(websocket, data, base_path='.'):
37
  if data['type'] == 'folder':
 
32
  output, error = process.communicate()
33
  response = f"Command executed:\n\nOutput:\n{output.decode('utf-8')}\nError:\n{error.decode('utf-8')}"
34
  websockets.broadcast(connected, response)
35
+ except Exception as e:
36
+ websockets.broadcast(connected, response)
37
 
38
  async def create_file_structure(websocket, data, base_path='.'):
39
  if data['type'] == 'folder':