Neil-YL commited on
Commit
afd70ba
·
verified ·
1 Parent(s): 89a4adf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,7 +72,8 @@ def add_to_queue(student_id, R, Y, B):
72
 
73
  # Ensure total volume is 300 µL
74
  if R + Y + B != 300:
75
- return {"Status": "Error", "Message": "The total R, Y, and B volume must be exactly 300 µL."}
 
76
 
77
  experiment_id = secrets.token_hex(4)
78
 
 
72
 
73
  # Ensure total volume is 300 µL
74
  if R + Y + B != 300:
75
+ yield {"Status": "Error", "Message": "The total R, Y, and B volume must be exactly 300 µL."}
76
+ return
77
 
78
  experiment_id = secrets.token_hex(4)
79