Spaces:
Running
Running
Update app.py
Browse files
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':
|