Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -289,13 +289,13 @@ async def get_file_content(websocket, key,project_name, path,rpath,name,connecte
|
|
| 289 |
'rfilePath':rpath,
|
| 290 |
'filePath':path,
|
| 291 |
}
|
| 292 |
-
await
|
| 293 |
except Exception as e:
|
| 294 |
event = {
|
| 295 |
"type": "error",
|
| 296 |
"message": f"Failed to read file content: {str(e)}",
|
| 297 |
}
|
| 298 |
-
await
|
| 299 |
|
| 300 |
|
| 301 |
|
|
|
|
| 289 |
'rfilePath':rpath,
|
| 290 |
'filePath':path,
|
| 291 |
}
|
| 292 |
+
await send_message_chunks(websocket,event)
|
| 293 |
except Exception as e:
|
| 294 |
event = {
|
| 295 |
"type": "error",
|
| 296 |
"message": f"Failed to read file content: {str(e)}",
|
| 297 |
}
|
| 298 |
+
await send_message_chunks(websocket,event)
|
| 299 |
|
| 300 |
|
| 301 |
|