Skip to content

Commit 9c58523

Browse files
committed
Add warning log for when SPA preprocessing request can't find the foil hole id
1 parent c55dc22 commit 9c58523

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/murfey/server/api/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,11 @@ async def request_spa_preprocessing(
11351135
.one()[0]
11361136
.id
11371137
)
1138-
except Exception:
1138+
except Exception as e:
1139+
log.warning(
1140+
f"Foil hole ID not found for foil hole {proc_file.foil_hole_id}: {e}",
1141+
exc_info=True,
1142+
)
11391143
foil_hole_id = None
11401144
if proc_params:
11411145

0 commit comments

Comments
 (0)