Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -688,10 +688,10 @@ async def exe(websocket,connected,key):
|
|
688 |
|
689 |
return_code = await process.wait()
|
690 |
if return_code == 0:
|
691 |
-
|
692 |
pass
|
693 |
else:
|
694 |
-
|
695 |
pass
|
696 |
|
697 |
except Exception as e:
|
|
|
688 |
|
689 |
return_code = await process.wait()
|
690 |
if return_code == 0:
|
691 |
+
await send_message('Code executed successfully')
|
692 |
pass
|
693 |
else:
|
694 |
+
await send_message(f'error:Execution failed with return code {return_code}')
|
695 |
pass
|
696 |
|
697 |
except Exception as e:
|