Skip to content

Commit

Permalink
Fix f-string in add detector endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaytan committed Aug 29, 2024
1 parent db8b739 commit 5635407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nsls2api/api/v1/beamline_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def add_or_delete_detector(
if new_detector is None:
raise HTTPException(
status_code=409,
detail=f"Detector already exists in beamline {name} with either name '{detector.name}' or directory name '[detector.directory_name}'",
detail=f"Detector already exists in beamline {name} with either name '{detector.name}' or directory name '{detector.directory_name}'",
)

changed_detector = new_detector
Expand Down

0 comments on commit 5635407

Please sign in to comment.