From 5635407175dc38d290c5fa62d23ae623500800c8 Mon Sep 17 00:00:00 2001 From: nmaytan Date: Thu, 29 Aug 2024 17:17:40 -0400 Subject: [PATCH] Fix f-string in add detector endpoint --- src/nsls2api/api/v1/beamline_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsls2api/api/v1/beamline_api.py b/src/nsls2api/api/v1/beamline_api.py index e250554d..0ba34b30 100644 --- a/src/nsls2api/api/v1/beamline_api.py +++ b/src/nsls2api/api/v1/beamline_api.py @@ -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