Skip to content

Commit a2fb2a6

Browse files
committed
Using status instead of float
1 parent a6ec25c commit a2fb2a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pqnstack/app/api/routes/chsh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def _chsh( # Complexity is high due to the nature of the CHSH experiment.
9797

9898
if negative_count in impossible_counts:
9999
msg = f"Impossible negative expectation values found: {negative_indices}, expectation_values = {expectation_values}, expectation_errors = {expectation_errors}"
100-
raise HTTPException(status_code=504, detail=msg)
100+
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)
101101

102102
if len(negative_indices) > 1 or negative_indices[0] != 0:
103103
logger.warning("Expectation values have unexpected negative indices: %s", negative_indices)

0 commit comments

Comments
 (0)