Skip to content

Commit 2e79985

Browse files
committed
Raise the same error for 3D
1 parent c28240f commit 2e79985

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/murfey/server/feedback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ def _3d_class_murfey_ids(particles_file: str, app_id: int, _db) -> Dict[str, int
258258
and db.Class3D.pj_id == pj_id
259259
)
260260
).all()
261+
if not classes:
262+
raise ValueError(f"No 3D classification IDs found for {particles_file}")
261263
return {str(cl.class_number): cl.murfey_id for cl in classes}
262264

263265

0 commit comments

Comments
 (0)