File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,14 @@ def run_app():
68
68
@app .route ("/app_status" , methods = ["GET" ])
69
69
def app_status ():
70
70
# Check the status of all apps
71
- statuses = {
72
- app_name : (process .poll () is None ) # True if running, False if not
73
- for app_name , process in app_processes .items ()
74
- }
75
- return jsonify (statuses )
71
+ try :
72
+ statuses = {
73
+ app_name : (process .poll () is None ) # True if running, False if not
74
+ for app_name , process in app_processes .items ()
75
+ }
76
+ return jsonify (statuses )
77
+ except Exception as e :
78
+ return jsonify ({"error" : str (e )}), 500
76
79
77
80
@app .route ("/stop_lsl" , methods = ['POST' ])
78
81
def stop_lsl ():
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ button:disabled {
89
89
}
90
90
91
91
button .running {
92
- background-color : rgb (105 , 206 , 105 ) !important ;
92
+ background-color : rgb (105 , 206 , 105 );
93
93
cursor : not-allowed;
94
94
color : white;
95
95
}
You can’t perform that action at this time.
0 commit comments